Challenge

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

1.Implement the Code for controlling the retraction and extension of Airplane’s landing gear

INPUT:

#include<stdio.h>
int main()
{
int a;

printf("\nEnter the signal:");
scanf("%d",&a);

if(a<=0)
{
printf("\n your signal is RED flight take off");
}
else if(a<=1)
{
printf("\n your signal is GREEN flight landing sucsessfully");

}
else if(a!=1)
{
printf("\nWait for our signals ");
}


return 0;

}

OUTPUT:

1.

0

Enter the signal:
your signal is RED flight take off

2.

1

Enter the signal:
your signal is GREEN flight landing sucsessfully

3.

6

Enter the signal: unknow number
Wait for our signals

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.