Write a program to evaluate the h.c.f of two positive integers.
Answers
Answered by
4
Answer:
int main() { int a, b, x, y, t, gcd, lcm;
printf("Enter two integers\n"); scanf("%d%d", &x, &y);
a = x; b = y;
while (b != 0) { t = b; ...
gcd = a; lcm = (x*y)/gcd;
printf("Greatest common divisor of %d and %d = %d\n", x, y, gcd); ...
return 0;
Explanation:
Plz mark me as brainlist
Similar questions