C Odd or Even

C Odd or Even

Check if a number is Odd or Even using C Programming Language


C


#include<stdio.h> 
int main() { 
int num; 
printf("Enter a number: "); 
scanf("%d",&num);
if ( num%2 == 0 ) 
printf("%d is an even number", num); 
else printf("%d is an odd number", num); return 0; }


Click here to run this code



More Free Code Examples


Fibonacci Sequence Using C


C++ Odd or Even


C++ Code to Reverse a Number




Try these Fun Games by Bobbie:


Travel Blast Game New York


Play and Learn Russian


Battlestarship Game



Take a look at these Groovy Codes:


Fun IQ Test


Html Svg Starburst


Javascript Particles Fishes



Read the Latest Breaking Programming and Tech News, Great Articles and Tips:


Codenewz Programming and Tech News














Comments

Popular posts from this blog