1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#include <iostream> /* * * * * */ int main () { unsigned int grade = 0; if(std::cin >> grade) { if(grade > 100) { return -1; } } else { return -1; } std::cout << (grade < 60 ? "fail" : "pass") << std::endl; return 0; }