Question: 2. Write a sketch in Arduino with two functions; the first function-1 find the value y in the equation: y = x - 30.
2. Write a sketch in Arduino with two functions; the first function-1 find the value "y" in the equation: y = x - 30. The value "x" is entered by keyboard. The second function-2 test whether the value "y" (calculated with the first function) is a negative number. If it is true, then the function call again function-1 with the value a new value x = x (old value) + 40. Otherwise print the message: "Terminamos". Print all results.
Step by Step Solution
3.40 Rating (163 Votes )
There are 3 Steps involved in it
here is the screenshot of the code int x int y void setup put your setup code here to ... View full answer
Get step-by-step solutions from verified subject matter experts
