program to check whether entered number is even or odd-by enggfact - Enggfact

Latest

Convert your Passion into your Profession

Monday, September 2, 2019

program to check whether entered number is even or odd-by enggfact

#include<stdio.h>
int main()
{
int num;
printf("enter any number");
scanf("%d",&num);
(num%2==0)?printf("even number"):printf("odd number");
return 0;
}

No comments:

Post a Comment