Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int a, b;
- bool powtorzenie = false;
- cin >> a;
- cout << a << endl;
- cin >> b;
- if (a == b)
- return 0;
- else
- {
- cout << b << endl;
- while (powtorzenie == false)
- {
- cin >> a;
- cout << a << endl;
- if (a == b)
- powtorzenie = true;
- else
- {
- cin >> b;
- if (a == b)
- powtorzenie = true;
- else
- cout << b;
- }
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement