Write a program get lcm of 2 numbers in java
Answers
Answered by
1
Answer:
Algorithm
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