2.Write a program that prompts the user to enter a positive integer and obtains its square root in simplest form. For example,e the simplest form for v 18 is 3V 2 is, for 28 is 2vZ, and for 3 v 648 is...


please use java to answer the following question


2.Write a program that prompts the user to enter a positive integer and obtains its<br>square root in simplest form. For example,e<br>the simplest form for v 18 is 3V 2 is, for 28 is 2vZ, and for 3 v 648 is 18V 2-<br>Here are some sample runs:e<br><Output><br>Enter a positive integer: 1300 <enter icon><br>sqrt (1300) is 10*sqrt (13)<br><Еnd Outpu<br><Output><br>Enter a positive integer: 31 <enter icon><br>sgrt (31) is sgrt (31)<br><End Output><br><Output><br>Enter a positive integer: 64 <enter icon><br>sqrt (64) is 8<br><Еnd Outpu<br>

Extracted text: 2.Write a program that prompts the user to enter a positive integer and obtains its square root in simplest form. For example,e the simplest form for v 18 is 3V 2 is, for 28 is 2vZ, and for 3 v 648 is 18V 2- Here are some sample runs:e

Enter a positive integer: 1300 sqrt (1300) is 10*sqrt (13) <еnd>

Enter a positive integer: 31 sgrt (31) is sgrt (31)

Enter a positive integer: 64 sqrt (64) is 8 <еnd>




Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here