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