Hindi, asked by priya8433, 3 months ago

write a program to take 2 input and find LCM and GCD​

Answers

Answered by siddharth3791
4

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▄▀▄▀

Similar questions