Advertisement
Spocoman

02. Passed or Failed

Nov 2nd, 2023 (edited)
484
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.17 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6.     double grade;
  7.     cin >> grade;
  8.  
  9.     cout << (grade < 3 ? "Failed!" : "Passed!") << endl;
  10.     return 0;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement