Computer Science, asked by rastogianubhuti911, 3 months ago

write a program to input two numbers and display their LCM ​

Answers

Answered by KamakshiGupta13
0

Answer:

Java Program To Find LCM Of Two Numbers

Explanation:

  1. Initialize A and B with positive integers.
  2. Store maximum of A & B to the max.
  3. Check if max is divisible by A and B.
  4. If divisible, Display max as LCM.
  5. If not divisible then step increase max, go to step 3.
Similar questions