Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int moneti[4];
- int ednakvi_na_0 = 0;
- int ednakvi_na_5 = 0;
- for (int i = 0; i <= 3; i += 1)
- {
- cin >> moneti[i];
- if (moneti[i] == 0)
- {
- ednakvi_na_0 += 1;
- }
- if (moneti[i] == 5)
- {
- ednakvi_na_5 += 1;
- }
- }
- if ( ednakvi_na_0 < ednakvi_na_5)
- {
- cout << ednakvi_na_0 << endl;
- }
- else
- {
- cout << ednakvi_na_5 << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement