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