Header Ads Widget

Responsive Advertisement

Odd or Even Number Using Do While Loop



#include<stdio.h>

int main()
{
int n;
do{
printf("Enter a Number : ");
scanf("%d",&n);
//printf("%d\n",n);
if(n%2==0)
printf("This is a Even Number.\n");
else
printf("This is a Odd Number.\n");
} while(1);
return 0;
}

Post a Comment

0 Comments