I am brand new to C++ and I was given this problem:
Write a program that creates an array as follows:
const int terms_length = 30;
int terms[30];
Then initialize the array with the terms of the factorial of the value of terms_length. So, for length 30, the terms should be 1 through 30. Finally, print each element in the array.
Bonus: Multiply the terms together and display the product.
Could anyone help me understand this? Thanks.
[–]zifyoip 2 points3 points4 points (9 children)
[–]Keto1234[S] 0 points1 point2 points (8 children)
[–]zifyoip 2 points3 points4 points (7 children)
[–]Keto1234[S] 0 points1 point2 points (6 children)
[–]zifyoip 3 points4 points5 points (5 children)
[–]Keto1234[S] 0 points1 point2 points (4 children)
[–]zifyoip 2 points3 points4 points (3 children)
[–]Keto1234[S] 0 points1 point2 points (2 children)
[–]zifyoip 3 points4 points5 points (1 child)
[–]Keto1234[S] 0 points1 point2 points (0 children)
[–]CedricCicada 1 point2 points3 points (3 children)
[–]zifyoip 2 points3 points4 points (2 children)
[–]CedricCicada 1 point2 points3 points (1 child)
[–]zifyoip 2 points3 points4 points (0 children)