My Space
Tuesday, 31 January 2017
Even/Odd
#include <stdio.h>
#include <conio.h>
int main(){
int num;
printf("Enter a number:\n");
scanf("%d",&num);
if(num%2==0){
printf("\nEven");
}
else
printf("\nOdd");
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment