Tuesday, August 12, 2014

C CODE TO IMPLEMENTS SWITCH CASE PROGRAMM

#include<stdio.h>
#include<conio.h>
void main()
{
int n;
clrscr();
printf("\nENter Any Number : ");
scanf("%d",&n);

switch(n)
{
case 1 : printf("\nONE"); break;
case 2 : printf("\nTWO"); break;
case 3 : printf("\nTHREE"); break;
case 4 : printf("\nFOUR"); break;
case 5 : printf("\nFIVE"); break;
default : printf("\nInvalid");
}
getch();
}

No comments:

Post a Comment

Computer Network & Computer Features | Bal Varg | Computer Questions List!

  Computer Network & Computer Features 1) _______ is a thin strip like bar present at the bottom of the screen.   Taskbar 2) _______ ser...