Write a Program to Check weather a number is Odd or Even



Odd, Even, test, C Program, Sumit Kar, Timus Rak







#include<stdio.h>
void main()
{
int a;
printf("Enter a number: ");
scanf("%d",&a);
if(a%2==0) /* Checking whether remainder is 0 or not. */
printf("Even Number");
else
printf("Odd Number");
}


Comments

Popular posts from this blog

Write a Program to Add two 3x3 Matrix using C

C program for Unit Conversion

Write a Program to Add two 5x5 Matrix using C