Monday, August 2, 2021

C++ Program to find input number is Even or Odd.

C++ Program to find input number is Even or Odd.

#include<iostream.h>

#include<conio.h>

void main()

{

int n;

 clrscr();

 cout<<"\nEnter any number ";

 cin>>n;

 if(n%2==0)

  {

   cout<<"\n Its Even Number";

  }

  else

  {

   cout<<"\n Its Odd Number";

  }

 getch();

}

 

   

No comments:

Post a Comment

Programmingway@Eklavya Technosys!: JAC Board Computer Examination Sample Questions Hi...

Programmingway@Eklavya Technosys!: JAC Board Computer Examination Sample Questions Hi... : 1) Which of the following is NOT a web service? (...