Hello friends!!!!!
Pgr to find whether the number is even or not
C LANGUAGE
9/6/20241 min read
#include <stdio.h>
int main () {
int a,i,odd=0;
printf("Enter a number : ");
scanf("%d", &a);
if(a % 2 ==0) {
printf("The number is even");
}
else {
printf("The number is odd");
}
return 0;
}
Output :
Enter a number : 45
The number is odd
=== Code Execution Successful ===