Ask Question
1 November, 04:28

Create a program that can be used to add two integers together. In the beginning, the user is asked to give two integers that are to be summed. The program then prints the formula that describes the addition of the numbers.

+3
Answers (1)
  1. 1 November, 06:00
    0
    Answer written in python.

    Explanation:

    #ask user for the first integer.

    first_number = int (input ("enter first number: "))

    #ask user for the second integer

    second_number = int (input ("enter second number: "))

    #add both and store in a variable, result.

    result = first_number + second_number

    #print out the result

    print (f"the answer to the problem is {result} calculated by adding {first_number} to {second_number}")

    The worded lines after the # sign are called comments and are used to describe what the following lines of code does making it easier to read and understand by other programmers or by the same programmer coming back to it after a while.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Create a program that can be used to add two integers together. In the beginning, the user is asked to give two integers that are to be ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers