#include <stdio.h>
#include <math.h>
int main() {
int number;
double squareRoot;
// Input from user
// Calculate the square root
squareRoot
= sqrt(number
);
// Check if the square of the square root equals the original number
if (squareRoot * squareRoot == number) {
printf("%d is a perfect square.\n", number
); } else {
printf("%d is not a perfect square.\n", number
); }
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxtYXRoLmg+CgppbnQgbWFpbigpIHsKICAgIGludCBudW1iZXI7CiAgICBkb3VibGUgc3F1YXJlUm9vdDsKCiAgICAvLyBJbnB1dCBmcm9tIHVzZXIKICAgIHByaW50ZigiRW50ZXIgYSBudW1iZXI6ICIpOwogICAgc2NhbmYoIiVkIiwgJm51bWJlcik7CgogICAgLy8gQ2FsY3VsYXRlIHRoZSBzcXVhcmUgcm9vdAogICAgc3F1YXJlUm9vdCA9IHNxcnQobnVtYmVyKTsKCiAgICAvLyBDaGVjayBpZiB0aGUgc3F1YXJlIG9mIHRoZSBzcXVhcmUgcm9vdCBlcXVhbHMgdGhlIG9yaWdpbmFsIG51bWJlcgogICAgaWYgKHNxdWFyZVJvb3QgKiBzcXVhcmVSb290ID09IG51bWJlcikgewogICAgICAgIHByaW50ZigiJWQgaXMgYSBwZXJmZWN0IHNxdWFyZS5cbiIsIG51bWJlcik7CiAgICB9IGVsc2UgewogICAgICAgIHByaW50ZigiJWQgaXMgbm90IGEgcGVyZmVjdCBzcXVhcmUuXG4iLCBudW1iZXIpOwogICAgfQoKICAgIHJldHVybiAwOwp9