Skip to content

Commit

Permalink
Create as11.7.py
Browse files Browse the repository at this point in the history
  • Loading branch information
shuvojitss authored Oct 19, 2023
1 parent 40c6624 commit 982fd84
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions as11.7.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from math import sqrt
try:
num=int(input("Enter the number: "))
sqroot=sqrt(num)
print("Square root of",num,"is",sqroot)
except ValueError:
print("Input must be an positive integer")


#Enter the number: -5
#Input must be an positive integer
#Enter the number: 56
#Square root of 56 is 7.483314773547883

0 comments on commit 982fd84

Please sign in to comment.