program to find whether a number is odd or


PROGRAM TO FIND WHETHER A NUMBER IS ODD OR EVEN

int main()

{

int number ;

printf("Enter a whole number\n");

scanf("%d",&number);

if(number % 2 == 0)

printf("number is even.\n");

else

printf("number is odd.\n");

 

return 0;

}

 

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: program to find whether a number is odd or
Reference No:- TGS0159467

Expected delivery within 24 Hours