import math
# Taking the input from user
number = int(input("Enter the Number"))
root = math.sqrt(number)
if int(root + 0.5) ** 2 == number:
print(number, "is a perfect square")
else:
print(number, "is not a perfect square")
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int n;
double root;
cout << "Enter The number : ";
cin>>n;
root = sqrt(n);
if (pow(root + 0.5,2) == n)
{
cout << "Perfect Square" << endl;
}
else
{
cout << "Not Perfect" << endl;
}
return 0;
}