Computer Science, asked by charisma5, 11 months ago

write a program to find whether a given number is even or odd in C language​

Answers

Answered by yaduvanshialok2100
1

in c++

include<iostream.h>

#include<conio.h>

main()

{

clrscr();

int a;

cout<< "PLEASE ENTER THE NUMBER";

cin>>a;

if (a%2=0)

cout<<"number is even";

else

cout<<"number is odd";

}

Similar questions