23 lines
428 B
C++
23 lines
428 B
C++
#include <iostream>
|
|
|
|
using namespace std;
|
|
|
|
int main()
|
|
{
|
|
int money = 0;
|
|
cout << "How much money do you earn? ";
|
|
cin >> money;
|
|
|
|
if (money < 1000)
|
|
cout << "Work more. ";
|
|
if (money > 1000) {
|
|
if (money > 1000000)
|
|
cout << "You are a millionaire. ";
|
|
if (money < 1000000)
|
|
cout << "You work great. ";
|
|
}
|
|
|
|
cout << "You are doing great!" << endl;
|
|
|
|
return 0;
|
|
}
|