Skip to content

den01-python-programming/exercise-2-2-square-root-of-sum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Exercise 2.2 Square root of sum

Write a program that reads two integers from the user and prints the square root of the sum of these integers. The program does not need to work with negative values.

You can calculate the square root of an integer with the command np.sqrt like this:

import numpy as np
number = 42
square_root = np.sqrt(number)
print(square_root)

Here are a few examples:

**1**
**0**
1
**5**
**4**
3
**1**
**35**
6

NB: Remember you will have to pip3 install numpy to get the numpy library!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages