#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