wap to print the smallest positive number that is divided by all the number from m to n
Answers
Answered by
1
Answer:
Smallest number divisible by first n numbers
Given a number n find the smallest number evenly divisible by each number 1 to n.
Examples:
Input : n = 4
Output : 12
Explanation : 12 is the smallest numbers divisible
by all numbers from 1 to 4
Input : n = 10
Output : 2520
Input : n = 20
Output : 232792560
Similar questions