Question: 2. Write a program that calculates 1 + 3 + 5 + 7 + + 99 (40 pts) (on slides page 56) a. By using

2. Write a program that calculates 1 + 3 + 5 + 7 + + 99 (40 pts) (on slides page 56)

a. By using for loop

b. By using while loop

c. By using do-while loop

3. Ask the user to enter an integer n (n 1). Write a program that calculates 1! + 2! + 3! + 4! + + n! (40 pts) (on slides page 57)

a. By using for loop

b. By using while loop

c. By using do-while loop Extra credits:

4. Write a program that displays the multiplication table shown as follows: (20 pts) (on slides page 58)

a. By using for loop

b. By using while loop

c. By using do-while loop

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!