#include <stdio.h> 2
3 int main(void) {
4 int n;
5 scanf("%d", &n);
6
7 switch (n % 10) {
8 case 2:
9 case 4:
10 case 5:
11 case 7:
12 case 9:
13 puts("hon");
14 break;
15 case 0:
16 case 1:
17 case 6:
18 case 8:
19 puts("pon");
20 break;
21 case 3:
Listing 1
C での実装例
 1
22 23 24 25 26 27
puts("bon");
break; }
return 0;