Do what you want to

do,Dream what you want to dream, Go where you want to go, Be what you want to be, because you only have one life and one chance to do all the things you want to do...


Friday, December 21, 2012

multilevel selection switch case


#include<stdio.h>
void main()
{
int number;
printf("Please enter your winning number");
scanf("%d",&number);
switch (number)
{
case 1: printf("Gold\n");
break;
case 2: printf("Silver\n");
break;
case 3: printf("Bronze\n");
break;
default: printf("Others");
}
}

No comments:

Post a Comment