Enter a number: 370 [1] "370 is an Armstrong number" Here, we ask the user for a number and check if it is an Armstrong number. PHP program to display the multiplication table of the given number. echo “welcome”.”
”; For Not an Armstrong Number: Let us assume that a user enters the positive integer value as 431. When the sum of the cube of the individual digits of a number is equal to that number, the number is called Armstrong number. ?> pro7.php 371 is an Armstrong number. $i++; Learn how your comment data is processed. else { , Question:-write a program to enter a number and calculate the factorial of entered number. C program to print 1 to 100 numbers using while loop. Example #2: Using for a loop.