Ask Question
16 March, 21:37

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

+4
Answers (1)
  1. 16 March, 21:57
    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?
Find 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 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