Facebook
From Tani, 1 Month ago, written in C++.
Embed
Download Paste or View Raw
Hits: 163
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5.     long long n;
  6.     cin >> n;
  7.     if (n <= 1000) {
  8.         cout << "Bad luck!" << endl;
  9.     } else if (n >= 1500) {
  10.         cout << "I will buy Punjabi" << endl;
  11.         cout << "I will buy new shoes" << endl;
  12.         cout << "Alisa will buy new shoes" << endl;
  13.     } else {
  14.         cout << "I will buy Punjabi" << endl;
  15.     }
  16.     return 0;
  17. }
  18.  
  19.