Computer Science, asked by Rupa45678, 1 month ago

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 abcefghijxyz
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 prakharagrawal6055
0

Answer:

n=int(input("Enter any number:"))

if n%2==0:

   print("True")

else:

   print("False")

Explanation:

Similar questions