Write a program to find the square of the given number

//this is a program to find the square of the given number
#include<iostream>
#include<conio.h>
using namespace std;

int main()
{
int num;

cout<<"\n\nENter the number: ";
cin>>num;

if(num%2==0)
cout<<"\n\nThe number is a even number.";
else
cout<<"\n\nThe number is a odd number.";

getch();
}

Previous
Next Post »