#include iostream.h
#include conio.h
#include math.h
class perfect
{
private:
int m,n,p;
public:
void getdata();
//void compute();
};
void perfect :: getdata()
{
cout<<"\nenter an integer number\n";
cin>>n;
p=sqrt(n);
m=p*p;
if(m==n)
{
cout<<"\nnumber is a perfect square\n";
}
else
{
cout<<"\n number is not a perfect square\n";
}
}
int main()
{
perfect per;
per.getdata();
//per.compute();
getch();
return 0;
}