This program is about find and print the present Elevator position using Swtich Case in C
#include <stdio.h> int main() { int a; printf("Enter Floor No : "); scanf("%d",&a); switch(a) { case 1: printf("\nFirst Floor"); break; case 2: printf("\nSecond Floor"); break; case 3: printf("\nThird Floor"); break; default: printf("Invalid No"); break; } return 0; }To download raw file Click Here
Output: Enter Floor No:3 Third Floor
Learn All in Tamil © Designed & Developed By Tutor Joes