Question: Stuck on this assignment for Intro to Java class any help would be helpful thanks. Your program should take an integer as input and print

Stuck on this assignment for Intro to Java class any help would be helpful thanks.

Your program should take an integer as input and print its factorial as output.

a. Use a for loop for your calculations.

b. Use a while loop for your calculations.

Input info: n is between 1 and 12, including 1 and 12

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!