下面 C++ 代码执行时如输入 59.99,将输出 及格 两个汉字。
59.99
及格
int score; cout << "请输入学生成绩:"; cin >> score; if (score < 60) cout << "不及格"; else cout << "及格";
正确 √
错误 ×