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
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
4
Answer:
Your answer is in the ATTACHMENT
Attachments:
Similar questions