QQ扫一扫联系
执行以下代码后的输出结果是( )。
int n = 11, bonus = 0; char grade = 'C'; switch (n % 3) { case 1: bonus = 100; cout << bonus; switch (grade) { case 'A': cout << "*6"; break; case 'B': cout << "*3"; break; case 'C': cout << "*1"; } break; case 2: bonus = 60; cout << bonus; switch (grade) { case 'A': cout << "#3"; break; case 'B': cout << "#2"; break; default: cout << "#1"; } break; default: bonus = 20; cout << bonus; }
30*3
60#1
60*1
20