Lab 3 Using the for Looping (Repetition) Structure design a program that prompts the user to enter a positive integer number. Use a for loop to calculate and display the factorial value of that number. A factorial number is a number multiplied by every factor between 1 and the number, inclusive. For instance, 3 factorial is 3 * 2 * 1. If the user enters a negative number, display a message indicating that the program calculates only positive numbers. Otherwise, display the result of the calculation…
Words 370 - Pages 2