At Westonci.ca, we make it easy to get the answers you need from a community of informed and experienced contributors. Get detailed answers to your questions from a community of experts dedicated to providing accurate information. Join our Q&A platform to connect with experts dedicated to providing accurate answers to your questions in various fields.
Sagot :
The given program is written in python that finds the sum of two numbers entered by the user. First, it prompts the user to input two numbers and converts them to integers. Secondly, it calculates their sum and displays the result of addition.
The required code is given as follows:
num1 = int(input())
# prompts the user to input the first number in variable num1. Input () function returns a string value so the entered number is first converted into integer using the function int().
num2 = int(input())
# prompts the user to input the second number in variable num2. Input () function returns a string value so the entered number is first converted into integer using the function int().
print(num1 + num2)
# adds num 1 and num 2. Then prints result of sum
You can learn more about how to add two number using programming language at
https://brainly.com/question/13014075
#SPJ4
We hope this information was helpful. Feel free to return anytime for more answers to your questions and concerns. We hope this was helpful. Please come back whenever you need more information or answers to your queries. Get the answers you need at Westonci.ca. Stay informed with our latest expert advice.