Computer Science, asked by daisyhemington, 7 months ago

c. Write a program to input two unequal positive numbers using scanner class and check whether they
are perfect square numbers or not. If the user enters any negative number then
the program displays the message 'Square root of a negative number cannot be
determined'.
Sample Input: 81, 100
Sample Output: They are perfect square numbers,
Sample Input: 225, 99
Sample Output: 225 is a perfect square number.
99 is not a perfect square number

Answers

Answered by avinash9631
1

Answer:

c. Write a program to input two unequal positive numbers using scanner class and check whether they

are perfect square numbers or not. If the user enters any negative number then

the program displays the message 'Square root of a negative number cannot be

determined'.

Sample Input: 81, 100

Sample Output: They are perfect square numbers,

Sample Input: 225, 99

Sample Output: 225 is a perfect square number.

99 is not a perfect square number

Answered by sneha413639
4

Answer:

Your answer is in the ATTACHMENT

Attachments:
Similar questions