#include <stdio.h>
#include <string.h>
int main()
{
char stop;
printf("\tTNSTC\n");
printf("Mannargudi to Palani\nPoint to Point\n");
printf("Bus Route\n1.Mannargudi\n2.Thanjavur\n3.Trichy\n4.Manapaarai\n5.Ottanchathiram\n6.Dindugal\n7.Palani\n");
printf("Enter your stop:");
scanf("%c",&stop);
switch(stop)
{
case '1':
printf("This Stoping is Thanjavur\nBus Door Opens\n");
break;
case '2':
printf("This Stoping is Trichy\nBus Door Opens\n");
break;
case '3':
printf("This Stoping is Manapaarai\nBus Door Opens\n");
break;
case '4':
printf("This Stoping is Ottanchathiram\nBus Door Opens\n");
break;
case '5':
printf("This Stoping is Dindugal\nBus Door Opens\n");
break;
case '6':
printf("This Stoping is Palani\nBus Door Opens\n");
break;
default:
printf("No Stops");
}
return 0;
}
We are using online GDB Complier to compile this program here is the program link
https://onlinegdb.com/1ysKtzQkh