Write a program that displays the smallest positive number that is evenly divisible by all of the numbers from 1 to 20. For instance, 2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder.


Updated: Oct. 1, 2023 — Training Time: 1 Minute
Overseen by: Archangel Macsika
Topic: Generic - Java Programming

Difficulty: Easy.

Companies who previously asked this: -.

Objective: Write a program that displays the smallest positive number that is evenly divisible by all of the numbers from 1 to 20. For instance, 2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder.

Input: Numbers from 1 - 20.

Expected Output: Find out.

Sikademy Solution

Was this training resource helpful?