Ask Question
11 January, 06:56

Write code to add two numbers, 5 and 7. Then display the sum on the serial monitor.

+4
Answers (1)
  1. 11 January, 08:50
    0
    Explanation

    Using the Python 3 syntax in writing the code.

    First we will define a function 'add_numbers', parse in the variables x and y and return its sum as shown.

    Then we carry out the addition of 5 and 7.

    def sum_numbers (x, y):

    return x+y

    sum_numbers (5, 7)
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write code to add two numbers, 5 and 7. Then display the sum on the serial monitor. ...” in 📙 Physics if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers