write a program to take 2 input and find LCM and GCD
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Answer:
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);
if (num1 > num2)
numerator = num1;
denominator = num2;
numerator = num2;
GOOD MORNING
◦•●◉✿HOPE THIS WILL HELP YOU✿◉●•◦
◦•●◉✿HAVE A GREAT DAY✿◉●•◦
▀▄▀▄BE HAPPY▄▀▄▀