Project 2 - Implement the Code for controlling the retraction and extension of Airplane’s landing gear
Project 2 - Implement the Code for controlling the retraction and extension of Airplane’s landing gear
from the above question we have to implement the code for plane extractio and retraction landing gear


in theabove pictiure first i included the stdo.h and after that i used the static voltile variale and delaared some variable names after that i used a vod functon named it as a retraction and in that decalred some condtions to the variables here 0 means off or down and 1 means on or up like that all the conditions given to the all variables and afterr that printed the variabels conditins by usig print like wise i did to the extension void unction also after that i enterd into the main function and take some while loop in that i gave some user deined input and after took some switch case in that called the functionfor each case and endd the program
we can see the results in the output from console forthe pklane extension and retraction