Welcome to Westonci.ca, where finding answers to your questions is made simple by our community of experts. Join our Q&A platform and get accurate answers to all your questions from professionals across multiple disciplines. Discover detailed answers to your questions from a wide network of experts on our comprehensive Q&A platform.


Write a program that takes three numbers and prints their sum. Every
number is given on a separate line.


Sagot :

Answer:

This solution is implemented in python

num1 = float(input("Number 1: "))

num2 = float(input("Number 2: "))

num3 = float(input("Number 2: "))

print("Sum: "+str(num1+num2+num3))

Explanation:

This line prompts the user for the first number

num1 = float(input("Number 1: "))

This line prompts the user for the second number

num2 = float(input("Number 2: "))

This line prompts the user for the third number

num3 = float(input("Number 2: "))

This calculates and prints the sum

print("Sum: "+str(num1+num2+num3))

We appreciate your visit. Our platform is always here to offer accurate and reliable answers. Return anytime. Thanks for using our service. We're always here to provide accurate and up-to-date answers to all your queries. Get the answers you need at Westonci.ca. Stay informed with our latest expert advice.