Computer Science, asked by abhi67482, 11 months ago

write a programme to check given number is even or odd number ?​

Answers

Answered by dhruvsh
1

#include<iostream.h>

#include<conio.h>

void main()

{

clrscr();

int a

cout<<" Enter the number : ";

cin>>a;

if(a%2==0)

{ cout<<" \nThe number entered is even."

}

else

{ cout<<"\n The number entered is odd."

}

cout<<" \n Thank you !";

getch();

}

Hope this helps you !

Similar questions