C Programming Print the given no. is odd or even

C programming print the given no.odd and even #include<stdio.h> main() {  int i;  printf(“Enter a Numbern”);  scanf(“%d”,&i);  if(i%2==0) {  printf(“The number %d is Even”,i); }  else {  printf(“The number %d is Odd”,i); }  printf(“n”); } EXPLANATION Enter a Number5The number 5 is Odd Explanation: Here we declared an integer ‘i’. Then we took the input … Read more

error: Content is protected !!