Armstrong number using while loop in python | while loop in python |

Опубликовано: 02 Октябрь 2024
на канале: Mangesh Bagul
2,420
51

A three digit number is entered through the keyboard. Write a program to find the number is Armstrong number or not.

Armstrong number:

The number whose sum of the digit cubes is equal to the number itself is called as Armstrong Number.

E.g:

n=153

sum=1**3 + 5**3 + 3**3

= 1+125+27

= 126+27

= 153

If n and sum are equal then number is called as Armstrong number.

new video for python programming
python code for problem solving approach.
- python for beginners
- learn python in simple way.
- first clear basic concepts.
- solve more problems and consistent practice.

while loop in Python Program
python programming for beginners
python programming examples
python while loop
learn python

#shorts #ytshorts

instagram:   / mangeshbagul15