Python Program: Enter three numbers and print their sum


a=int(input("Enter 1st Number : "))
b=int(input("Enter 1st Number : "))
c=int(input("Enter 1st Number : "))
total=a+b+c;
print("The sum of",a,",",b,", and ",c,"is",total)



Output
>>>
Enter 1st Number : 15
Enter 1st Number : 25
Enter 1st Number : 40
The sum of 15 , 25 , and 40 is 80
>>>


No comments

Post your comments

Powered by Blogger.