Advertisement
ShaunakVids

6.2 Program to obtain 3 numbers and find their sum

Sep 18th, 2024
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.36 KB | None | 0 0
  1. #Program to obtain 3 numbers and find their sum.
  2.  
  3. import time
  4.  
  5. num1 = float(input("Enter your first number: "))
  6. num2 = float(input("Enter your second number: "))
  7. num3 = float(input("Enter your third number: "))
  8. add = num1+num2+num3
  9.  
  10. print("\nProcessing your request...")
  11. time.sleep(1)
  12.  
  13. print("\nThe sum of the three numbers you have entered is: ", add)
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement