Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int divizor(int x, int y, int z)
- {
- int c=0;
- for(int i=1; i<=x/2; i++)
- {
- if(x%i==0 && y%i==0 && z%i==0)
- c++;
- }
- return c;
- }
- int main()
- {
- cout<<divizor(24, 20, 12);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement