write a menu driven program to find LCM and HCF
Answers
Answered by
12
Hii there
here is your answer
- long gcd(long, long);
- int main() { long x, y, hcf, lcm;
- printf("Enter two integers\n"); scanf("%ld%ld", &x, &y);
- hcf = gcd(x, y); lcm = (x*y)/hcf;
- printf("Greatest common divisor of %ld and %ld = %ld\n", x, y, hcf); ...
- return 0; ...
- long gcd(long a, long b) {
HOPE IT HELPED U
PLZ MARK AS BRIANLIEST
Similar questions