write a program to input two numbers and display their LCM
Answers
Answered by
0
Answer:
Java Program To Find LCM Of Two Numbers
Explanation:
- Initialize A and B with positive integers.
- Store maximum of A & B to the max.
- Check if max is divisible by A and B.
- If divisible, Display max as LCM.
- If not divisible then step increase max, go to step 3.
Similar questions