Sunday, August 12, 2012

Strong Number Generate

Assalamu Alaikum. Hope, you all are well by the grace of Almighty ALLAH. Today we learn how to find out the strong numbers between two limits. take a look at the problem.

Problem: Write a program that prints the list of all strong numbers between X and Y. where Y > X. User will input the value of X and Y. If X is lower than Y a message will be given "Invalid Range".


Strong number is a number for which sum of factorials of the digits is equal to the given number.
For example 145 is a strong number as 1! + 4! + 5! = 1+ 24+ 120= 145.

Now take a look at the program.

Thank You all..


Post a Comment