answersLogoWhite

0

C program to find LCMof three integers?

Updated: 10/17/2024
User Avatar

Wiki User

βˆ™ 14y ago

Best Answer

int LCM3 (int a, int b, int c)

{

return LCM2 (a, LCM2 (b, c));

}

int LCM2 (int a, int b)

{

return a*b/GCD2(a, b);

}

User Avatar

Wiki User

βˆ™ 14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: C program to find LCMof three integers?
Write your answer...
Submit
Still have questions?
magnify glass
imp