Number even or odd?
Write a program to print whether a given number is even or odd?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Abhay ShankerPosted Nov 11, 2013, 6:33 AM
VulpesPosted Nov 11, 2013, 5:09 AM
Mukesh Kumar TiwariPosted Nov 11, 2013, 3:41 AM
printf("Enter an integer\n");
scanf("%d",&n);
if ( n%2 == 0 ) printf("Even\n");
else printf("Odd\n");