VS CODE
#include <stdio.h>
int main()
{
int a;
printf("Enter any number ");
scanf("%d", &a);
if (a % 2 == 0)
{
printf("The numbe is even\n");
}
else
{
printf("The number is odd\n");
}
return 0;
}
Turbo C++
#include <stdio.h>
#include<conio.h>
int main()
{
int a;
clrscr();
printf("Enter any number ");
scanf("%d", &a);
if (a % 2 == 0)
{
printf("The numbe is even\n");
}
else
{
printf("The number is odd\n");
}
getch();
return 0;
}
0 Comments