j

Sunday, 8 November 2015

Write a program that take two number from user and check second number square of first number or not

Program Solution

#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int a,b;
cout<<"Enter two numbers ::";
cin>>a>>b;
if(a*a==b)
cout<<"Second number is the square of first.";
else
cout<<"Its is not a square of first.";
getch();
}

OUTPUT 



Subscribe to this Blog via Email :