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 

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

1 Expert Approved Answer
Step: 1 Unlock

here is the screenshot of the code int x int y void setup put your setup code here to ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!