LCM stands for least common multiple. The least common multiple of two numbers is the smallest number that is a multiple of both of them. Program:- Output Screenshot:-
Tag Archives: loop
Find the Divisor of Number
Program:- Output Screenshot:-
For loop
A “For” Loop is used to repeat a specific block of code a known number of times. For example, if we want to check the grade of every student in the class, we loop from 1 to that number. When the number of times is not known before hand, we use a “While” loop. InitiateContinue reading “For loop”
Strong Number
Strong number is a number whose sum of all digits’ factorial is equal to the number ‘n’. Factorial implies when we find the product of all the numbers below that number including that number and is denoted by ! (Exclamation sign), For example: 4! = 4x3x2x1 = 24. Program:- Output Screenshot:-