Question: Complete the following code by Drag & Drop. By using Optimization, we need to write a function : 1 - This function will read 2

Complete the following code by Drag & Drop.
By using Optimization, we need to write a function :
1- This function will read 2 numbers from the main.
2- The first number should be a random number between range 1 and 5.
3- The second number should be read from the user and it is a number between range 1 and 5.
4- Add the two numbers inside the function.
5- If the result is an even number, blink Pin 3(using BOARD mode),
The total of the addition will control how many times Pin 3 will blink.
 Complete the following code by Drag & Drop. By using Optimization,

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!