C Program 10#include<stdio.h>int main (){int num;printf("\n enter any number to check even or odd:");scanf("%d",&num);if(num%2==0){printf("%d is even \n", num);}else{printf("%d is odd \n", num);}}
No comments: