Assalamu Alaikum. Hope you all are by the grace of Almighty ALLAH. Today we learn how to write a C programming code of a strong number. take a look at the problem.
Problem: Write a program to check whether a number is strong or not.
Solution:
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.
Problem: Write a program to check whether a number is strong or not.
Solution:
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..
0 comments:
Post a Comment