Study guides

☆☆

Q: To find gcd o two numbers?

Write your answer...

Submit

Still have questions?

Related questions

$ cat gcd.c#include int gcd_recursive(int a, int b){if (b == 0)return a;return gcd_recursive(b, a % b);}int main(){printf("GCD of 10 and 25: %d\n", gcd_recursive(10, 25));return 0;}$ gcc gcd.c -o gcd$ ./gcdGCD of 10 and 25: 5

You need at least two numbers to find a GCF.

You need at least two numbers to find an LCM.

You cannot. The sum of any two odd numbers is even (O+O=E), the sum of any two even numbers is even (E+E=E) and the sum of an odd and an even (or even and odd) is odd (O+E=E+O=O). O+O+O+O+O = O+O+O+O+O = E + E +O = E +O = O Addition is commutative, that is, the order in which you add the numbers does not matter. Some trial and error will demonstrate commutativity, though a proof is more complicated.

The two numbers are 13 and 8

$ cat gcd.c#include int gcd_recursive(int a, int b){if (b == 0)return a;return gcd_recursive(b, a % b);}int gcd_nonrecursive(int a, int b){int t;while (b != 0) {t = b;b = a % b;a = t;}return a;}int main(){printf("GCD of 10 and 25: %d\n", gcd_recursive(10, 25));printf("GCD of 10 and 25: %d\n", gcd_nonrecursive(10, 25));return 0;}$ gcc gcd.c -o gcd$ ./gcdGCD of 10 and 25: 5GCD of 10 and 25: 5

54 and 48

Take the absolute value of the difference between the two numbers. The difference between two numbers a and b is a-b or b-a. The absolute value is whichever one of these is not negative. So 0 - (-3) = +3 so the distance is 3 units.

The two numbers, 1,500 mL and 1.5 L are the same amount, (=)........... :o

huh?

In Cd(OH)2 the oxidation numbers are Cd +2, O -2, H +1. Overall these add up to zero--remember there are two O s and two H's

o ,o

People also asked