Computer Science, asked by falaquejahan1928, 10 months ago

write a menu driven program to find LCM and HCF​

Answers

Answered by swati4678
12

Hii there

here is your answer

  1. long gcd(long, long);
  2. int main() { long x, y, hcf, lcm;
  3. printf("Enter two integers\n"); scanf("%ld%ld", &x, &y);
  4. hcf = gcd(x, y); lcm = (x*y)/hcf;
  5. printf("Greatest common divisor of %ld and %ld = %ld\n", x, y, hcf); ...
  6. return 0; ...
  7. long gcd(long a, long b) {

HOPE IT HELPED U

PLZ MARK AS BRIANLIEST

Similar questions