Files
CKG/extern/stdcxx/4.2.1/examples/manual/out/accumulate.out
2025-06-07 11:34:38 -04:00

4 lines
108 B
Plaintext

For the series: 1 2 3 4 5 6 7 8 9 10 where N = 10
The sum = (N * N + N) / 2 = 55
The product = N! = 3628800