Apna Garage
PHP, WordPress Codes
Home
WordPress
Thursday, 4 May 2017
C program to find wether entered number is Even or Odd using continue.
#include
void main() { int numbr; do { printf("\nEnter the number: "); scanf("%d", &numbr); if(numbr % 2 == 0) { printf("%d is Even.\n", numbr); continue; } else { printf("%d is Odd.\n", numbr); continue; } } while(2 == 2); }
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment