2081 7

C Programming20815 marksLoop control statements

Write a program to check whether a given number is Armstrong number or not.

Write a program to check whether a given number is Armstrong number or not. [5]

An Armstrong number (also called a narcissistic number) is a number that equals the sum of its own digits each raised to the power of the number of digits. Example: - 153 = 1³ + 5³ + 3³ = 1 + 125 + 27 = 153 ✓ - 371 = 3³ + 7³ + 1³ = 27 + 343 + 1 = 371 ✓ --- --- --- Step remainder result (sum) ----...

Up nextWhat is operator precedence? Explain assignment and logical operator. [1+4]