#include<stdio.h>
main()
{
int num;
printf("Enter Any Integer\n");
scanf("%d",&num);
switch(num%2)
{
case 0:
printf("%d is Even Number",num);
break;
case 1:
printf("%d is Odd Number",num);
break;
}
return 0;
}
Output:
Friday, June 15, 2018
C Program To Check The Number Whether It Is Even or Odd( Switch Case)
C Programs- Switch Case
Labels:
C Programs,
C Programs- Switch Case
Subscribe to:
Post Comments (Atom)
No comments: