Check Even or odd number program in C language
/*
Name : C source program --> Check Even or odd number program in C language
Author : Funny Coder(Maniruzzman Akash)
It's a free code. You can use it anywhere
*/
#include<stdio.h>
int main(){
int num;
printf("\nEnter any number : ");
scanf("%d", &num);
if(num % 2 == 0){
printf("\n%d is an even number\n", num);
}else{
printf("\n%d is an odd number\n", num);
}
return 0;
}
Fig - Check even or odd |
No comments:
Post a Comment