Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int DivImpar(int a, int b){
- while (a % 2 == 0)
- a = a / 2;
- while (b % 2 == 0)
- b = b / 2;
- while (a != b) {
- if (a > b)
- a = a - b;
- else
- b = b - a;}
- return a;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement