Special Number in Java in Hindi | Iterative Constructs in Java Programming Practice 03

13 Просмотры
Program discussed:
Write a program to input a number and print whether the number is a special number or not.
(A number is said to be a special number, if the sum of the factorial of the digits of the number is same as the original number.)
For example, 145 is a special number because 1! + 4! + 5! = 1+24+120 = 145
Similarly, 40585 is special number because 4! + 0! + 5! + 8! + 5! = 24+1+120+40320+120 = 40585.

Programming Practice Videos Playlist: https://www.youtube.com/playlist?list=PLeybsazNWUUW1DNoErQY1PGY81JZmxLc6
ICSE 10/9 Computer Applications Playlist: https://www.youtube.com/playlist?list=PLeybsazNWUUXVjHJ2-8hWnhx_CrY50-I6

Java provides three types of looping constructs in - for loop, while loop and do - while loop. All three loops repeat a set of instructions as long as the underlying condition remains true. The underlying condition is termed as the test condition. The test condition may be evaluated before the start of the loop or at the end of the loop. Accordingly, the loop is termed as an entry - controlled loop or exit - controlled loop, respectively.
Enjoy the video!
Contact me: ash1080ekhar@gmail.com
Язык программирования Java
Комментариев нет.