write a program to print its an even number if the input number is an even otherwise its not an even number
Answers
Answered by
0
Answer:
#include<stdio.h>
#include<conio.h>
void main()
{
int number;
printf("\n Welcome in our program.");
printf("\n\n Enter a number-:");
scanf("%d",&number);
if(number%2==0)
{
printf("\n It is an even number.");
}
else
{
printf("\n It is an odd number.");
}
printf("\n Thanks for using our program.");
getch();
}
Answered by
0
Answer:
n=int(input("Enter any number:"))
if n%2==0:
print("True")
else:
print("False")
Explanation:
Similar questions