package test1; public class Answer { public static void main(String[] args) { // TODO Auto-generated method stub int count_happyday = 0; for(int month=1; month<13; month++){ //28日までの計算 for(int day10=1; day10<=2; day10++){ for(int day1=1; day1<=9; day1++){ if(month == day10 + day1){ count_happyday++; } } } } System.out.print(count_happyday+2); } }