Write a program to find the LCM and GCD of two numbers?
Answers
Answered by
5
Explanation:
C Program to Find the GCD and LCM of Two Integers...
- * C program to find the GCD and LCM of two integers using Euclids' algorithm.
- int num1, num2, gcd, lcm, remainder, numerator, denominator;
- printf("Enter two numbers\n")
- scanf("%d %d", &num1, &num2);
- scanf("%d %d", &num1, &num2);if (num1 > num2)
- scanf("%d %d", &num1, &num2);if (num1 > num2)numerator = num
- denominator = num2;
- = num2;numerator = num2;
Similar questions