Aircraft Identification Simulation
This code demonstrate the Switch Case selection structures that identifies what type of aircraft based on the speed..
OUTPUT:
#include <stdio.h>
int main()
{
int kmh, mtr;
printf("_________________________________________________________\n");
printf("| AIRCRAFT IDENTIFICATION SCANNER SIMULATION |\n");
printf("|_______________________________________________________|");
printf("\n\nEnter the speed of Aircraft (Kilometer / hour) : ");
scanf("%d", &kmh);
switch(kmh)
{
case 1000: printf("CIVILIAN AIRCRAFT");
break;
case 500: printf("MILITARY AIRCRAFT");
break;
default: printf("IT IS BIRD");
break;
}
}
OUTPUT:
#include <stdio.h>
int main()
{
int kmh, mtr;
printf("_________________________________________________________\n");
printf("| AIRCRAFT IDENTIFICATION SCANNER SIMULATION |\n");
printf("|_______________________________________________________|");
printf("\n\nEnter the speed of Aircraft (Kilometer / hour) : ");
scanf("%d", &kmh);
switch(kmh)
{
case 1000: printf("CIVILIAN AIRCRAFT");
break;
case 500: printf("MILITARY AIRCRAFT");
break;
default: printf("IT IS BIRD");
break;
}
}
Aircraft Identification Simulation
Reviewed by code-dev
on
10:47 PM
Rating:
No comments: