Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. In main(0, use a loop to control and output a starpatternas follows: declarin

ID: 3608774 • Letter: 1

Question

1. In main(0, use a loop to control and output a starpatternas follows: declaring a integer N (usingcin to assign N). Output areverse triangle with N row, the first row of the reverse trianglehas N stars, the second row has N-1 stars, and soon. The last row of the reverse triangle has 1 star. E.g. when N is 3, you will print thefollowing star pattern *** ** * Note: nested loop is required to finishthis. 2. In main(), declare a variable N,input an integer less than 10 from standard input (keyboard). Then, define a function Factorial to calculate thefactorial product of N, which is: Factorial(N) = 1*2*3...*(N-1)*N; E.g. if you enter a 10, your program will calculate1*2*3*4*5*6*7*8*9*10 = 3628800 Note: N will be used as an argument of thefunction. You are required to use a loop (for or while) tocalculate the result. Finally, return the result to main()function, and output the result in main(). 1. In main(0, use a loop to control and output a starpatternas follows: declaring a integer N (usingcin to assign N). Output areverse triangle with N row, the first row of the reverse trianglehas N stars, the second row has N-1 stars, and soon. The last row of the reverse triangle has 1 star. E.g. when N is 3, you will print thefollowing star pattern *** ** * Note: nested loop is required to finishthis. 2. In main(), declare a variable N,input an integer less than 10 from standard input (keyboard). Then, define a function Factorial to calculate thefactorial product of N, which is: Factorial(N) = 1*2*3...*(N-1)*N; E.g. if you enter a 10, your program will calculate1*2*3*4*5*6*7*8*9*10 = 3628800 Note: N will be used as an argument of thefunction. You are required to use a loop (for or while) tocalculate the result. Finally, return the result to main()function, and output the result in main().

Explanation / Answer

please rate- thanks what was wrong with this answer? you didn't rate, you didn'tmessage with any questions, and then you repost? part 1 #include int main() {int n,i,j; coutn; for(i=n;i>0;i--) {for(j=1;j