PF Lab Quiz 2 - Fall24 - C
PF Lab Quiz 2 - Fall24 - C
Lab Quiz 1
Time: 75 Min.
Example:
For n = 5, the output should be:
* *
** **
*****
** **
* *
Q2: Write a program to print all strong numbers between two given numbers.
Description:
A strong number is a number in which the sum of the factorials of the digits equals the number itself.
Q3: Write a program which checks the powerful number. A positive integer is called a powerful
number of order n if
xyz = xn + yn + zn
Where n is total number of digits.
153= 13+53+33 (153 is powerful because the sum of the cube of each digit produce original
number).