C++ program to find even or odd number.

Q23. Write a program to find whether a given number is even or odd.

Ans.

#include<iostream.h>

#include<conio.h>  //for clrscr()

 

//Main function

void main()

{

int n;

clrscr();  //for clear screen

cout<<“\n Enter a number: “; Read More …