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