Computer Science, asked by nakuldhody2006, 6 hours ago

Write a program get lcm of 2 numbers in java

Answers

Answered by tanishkakirjat09
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