Challenge

Project 2 - Implement the Code for controlling the retraction and extension of Airplane’s landing gear

#include
#include
char Red,Green,light,off,up,lever,down;

void signallightRed()
{
 
    light=Red;
}
void signallightGreen()
{
    light=Green;
}
void signallightOff()
{
    light=off;
}
void setLiverUp()
{
    lever=up;
}
void setLiverDown()
{
    lever=down;
}
int main()
{
    printf("light is green \n");
    signallightGreen();
    printf("light is green so lever down \n");
    setLiverDown();
    printf("plane land");
    return 0;
}
Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.