Computer Science, asked by umasanwal111975, 20 hours ago

Write a program that reads an integer and tests whether it is a perfect square (of an integer) or not.​

Answers

Answered by priyankajosan1978
0

Answer:

I don't know

Explanation:

Plssss mark me as BRAINLIEST

Answered by anushka461
1

Explanation:

he product that we get is called the perfect square. In short, it is the product of two positive equal integers or product of an integer with itself.

The property of the perfect square number is that it

In Java, we can use the following way

The approach, we have followed is:

First, find out the square root of the given number.

Calculate the floor value of the calculated square root.

Find the difference of the floor value with the square root that we have find in step 1.

At last, compare the value (that we get in step 3) with 0. If the value is equal to 0 the given number is perfect square, else not.

Let's understand the

The difference of square root and floor value is 0.

The difference is equal to 0. Hence, the given number is perfect square.

Similar questions