98.7k views
0 votes
For this lab, you will write a program that has this output if the user enters 100 and 72:

Here is some pseudocode to help you write your program:

Import the math module
Ask the user for the first number
Ask the user for the second number
Print the square root of the first number
Print the square root of the second number
To write this program, you will search the math module page to find the function that you need. For most browsers, if you press the CTRL + F, a box will pop up that will let you search on that page. This will allow you to find the function that you seek quickly.

When your program is working properly, take a screenshot of it to turn in. If you cannot get your code to work properly, turn in the screenshot along with a paragraph that explains what you did to try to fix it.

For this lab, you will write a program that has this output if the user enters 100 and-example-1
User Sey
by
4.2k points

1 Answer

9 votes

Answer:

import math

first = float(input("What is your first number? "))

second = float(input("What is your second number? "))

print("The square root of your first number is", math.sqrt(first))

print("The square root of your second number is", math.sqrt(second))

User Ogborstad
by
4.4k points