mirror of
https://github.com/renbaoshuo/202401-programming-assignments.git
synced 2024-11-23 15:48:42 +00:00
32 lines
430 B
C
32 lines
430 B
C
|
#include <stdio.h>
|
||
|
|
||
|
int main() {
|
||
|
int n;
|
||
|
|
||
|
scanf("%d", &n);
|
||
|
|
||
|
switch (n) {
|
||
|
case 1:
|
||
|
printf("8\n");
|
||
|
break;
|
||
|
|
||
|
case 2:
|
||
|
printf("4.5\n");
|
||
|
break;
|
||
|
|
||
|
case 3:
|
||
|
printf("12.8\n");
|
||
|
break;
|
||
|
|
||
|
case 4:
|
||
|
printf("3\n");
|
||
|
break;
|
||
|
|
||
|
default:
|
||
|
printf("Exit\n");
|
||
|
break;
|
||
|
}
|
||
|
|
||
|
return 0;
|
||
|
}
|