An integer x is said to be a perfect square if we can find another integer i, such that z=ixi. Write a C++ program that
Posted: Mon Mar 21, 2022 4:45 pm
An integer x is said to be a perfect square if we can find another integer i, such that z=ixi. Write a C++ program that asks the user to input a non-negative integer, and then prints whether this integer is a perfect square or not. Examples: . x = 0, outputs true because 0 = 0x0 • x = 1, outputs true because 1 = 1x1 1 • x = 2, outputs false . x = 25, outputs true because 25 = 5 x 5 x = 27, outputs false Submit your solution in the source file perfect Square.cpp.