Answer:
Sample output:
Enter the number: 25
The square root of 25 is: 5
Enter the number: -25
The square root of 25 is: Nan
Step-by-step explanation:
Here the code is given as follows,
9.4m questions
12.2m answers