Monday 27 August 2012

Switch Case Statement in c language

 printf("Enter a no:\n");
scanf("%d",&n);
switch(n)
{
case 1 : printf("One");
break;
case 2 : printf("Two");
break;
case 3 : printf("Three");
break;
case 4 : printf("Four");
break;
case 5 : printf("Five");
break;
case 6 : printf("Six");
break;
case 7 : printf("Seven");
break;
case 8 : printf("Eight");
break;
case 9 : printf("Nine");
break;
default : printf("wrong no");
break;
}
getch();
}
Share This
Previous Post
Next Post

FYJC XI standard online admisson Process and declaraton of Merit list . Cut off List For prevous year also . 10 Th Results onlne declaraton Maharashtra Region .

0 comments: