Fix Lesson 1 Task 3

This commit is contained in:
Stanislav Mykhailenko 2024-07-18 14:11:18 +03:00
parent a9b7ecf20c
commit 3cddace709
GPG key ID: 1E95E66A9C9D6A36

View file

@ -10,23 +10,11 @@ int main()
if (money < 1000)
cout << "Work more. ";
if (money > 999)
if (money < 1001) {
cout << "Illegal salary." << endl;
return 1;
}
if (money > 1000) {
if (money > 1000000)
if (money > 999) {
if (money > 999999)
cout << "You are a millionaire. ";
if (money < 1000000)
cout << "You work great. ";
if (money > 999999)
if (money < 1000001) {
cout << "Illegal salary." << endl;
return 1;
}
}
cout << "You are doing great!" << endl;