I want to create a program that does this:
a = 7
result = 7*6*5*4*3*2*1 // until 0
cout << result
Program calculates the result of a*(a-1)*(a-2) --> until 1
I already tried but it isn't working (i tried with while loop).
I hope you understand the problem.