Advertisement
Subrata_Nandi

If_else1

Sep 19th, 2023
699
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.48 KB | None | 0 0
  1. #include<iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.     #ifndef ONLINE_JUDGE
  6.         freopen("input.txt", "r", stdin);
  7.         freopen("output.txt", "w", stdout);
  8.     #endif
  9.  
  10.     int savings;
  11.     cin>>savings;
  12.  
  13.     if(savings>5000) {
  14.         if(savings>10000) {
  15.             cout<<"Aroana";
  16.         } else {
  17.             cout<<"Oscar";
  18.         }
  19.     } else if(savings>2000) {
  20.         cout<<"Guppy\n";
  21.     } else {
  22.         cout<<"Education";
  23.     }
  24.  
  25.     return 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement