If-else statement
#include<stdio.h>
#include<conio.h>
void main()
{
int number;
printf("Enter any number");
scanf("%d',&number);
if(number%2==0)
{
printf("This is Even number");
else
printf("This is Odd number");
}
getch();
}
#include<conio.h>
void main()
{
int number;
printf("Enter any number");
scanf("%d',&number);
if(number%2==0)
{
printf("This is Even number");
else
printf("This is Odd number");
}
getch();
}
Post a Comment