summaryrefslogtreecommitdiff
path: root/conditional-operator-tests.cpp
blob: 570b4ecced4812d2e6f6caef408b67eec051f5f0 (plain)
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;
}