#include
void main ()
{
int x;
printf ("Please enter the light bulb's wattage in the following list.\n");
printf ("|15|25|40|60|75|100|\n");
scanf ("%d",&x);
switch (x){
case 15:
printf ( "The brightness is 125. \n");
break;
case 25:
printf ( "The brightness is 215. \n");
break;
case 40:
printf ( "The brightness is 500. \n");
break;
case 60:
printf ( "The brightness is 880. \n");
break;
case 75:
printf ( "The brightness is 1000. \n");
break;
case 100:
printf ( "The brightness is 1675. \n");
break;
default:
printf ( "The brightness is -1. \n");
break;
}
}
No comments:
Post a Comment