MIPI_BaseC_WebinarFRTK/05_Lecture05/00_switch_p6.c

26 lines
417 B
C
Raw Permalink Normal View History

2024-11-13 09:22:28 +03:00
#include <stdio.h>
int main ()
{
int input;
scanf ("%d", &input);
switch (input)
{
case 1:
printf ("one\n");
break;
case 2:
printf ("two\n");
break;
case 3:
printf ("three\n");
break;
case 4:
printf ("four\n");
break;
default :
printf ("default\n");
}
return 0;
}