Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int tmp, first, n_mulptiply = 0;
- cin >> first;
- tmp = first;
- while (tmp != 0)
- {
- cin >> tmp;
- if (tmp != 0 && tmp % first == 0)
- n_mulptiply++;
- }
- cout << "Number of elements multiplies of 4 = " << n_mulptiply;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement