← Accenture questions
CodingEasy

LCM and HCF calculation

Filed under Accenture

Write a function to calculate the Least Common Multiple (LCM) and Highest Common Factor (HCF / GCD) of two integers.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Accenture questions

Collected from public candidate posts and coding forums. Updated Nov 2026.