Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- char znak;
- int b = 0;
- int a = 0;
- int j = 0;
- int t = 0;
- cout << "Wprowadz 4 dowolne znaki:" << endl;
- while (b < 1 || a < 1 || j < 1 || t < 1)
- {
- cin >> znak;
- if (znak == 'b') b++;
- if (znak == 'a') a++;
- if (znak == 'j') j++;
- if (znak == 't') t++;
- cout << endl;
- }
- cout << " da sie";
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement