Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int MyVar = 200;
- int i = 0
- while (j<>4)
- {
- if (j == 0) {
- MyVar = MyVar + 5;
- if (MyVar == 300) {
- cout << "Zaehler: " << MyVar << endl;
- j = 1;
- }
- }
- if (j == 1) {
- MyVar = MyVar - 2.5;
- if (MyVar == 250) {
- cout << "Zaehler: " << MyVar << endl;
- j = 2;
- }
- }
- if (j == 2) {
- MyVar = MyVar + 25;
- if (MyVar == 500) {
- cout << "Zaehler: " << MyVar << endl;
- j = 3;
- }
- }
- if (j == 3) {
- MyVar = MyVar - 100;
- if (MyVar == 100) {
- cout << "Zaehler: " << MyVar << endl;
- j = 4;
- }
- }
- }
- }
- system("pause");
- return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement