Question: C Language Program with LEDS Please answer both questions. 3 & 4 Write a C program, using switch 1 (S1) control LED1, switch 2 (S2)
C Language Program with LEDS

Please answer both questions. 3 & 4
Write a C program, using switch 1 (S1) control LED1, switch 2 (S2) control LED2 separately (assuming LEDs active high this time): a. Press S1, LED1 is on; press S2, LED2 is on b. Press both, both LEDs are on; c. Make comments on each line of code to explain your program Modify your program in questions 3 to make LED1 on only when both S1 and S2 are press at the same time. (assuming LED1 active high and Make comments on each line of code to explain your program)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
