1. If the input is n=4 in the following algorithm find the output: 1. Input n 2. e← 0 3. f← 2 4. for
Posted: Sat Feb 26, 2022 10:51 am
1. If the input is n=4 in the
following algorithm find the output:
1. Input n
2. e← 0
3. f← 2
4. for i=1 to n do
4.1 f← f × i
4.2 e= e + f
5. output e, f
following algorithm find the output:
1. Input n
2. e← 0
3. f← 2
4. for i=1 to n do
4.1 f← f × i
4.2 e= e + f
5. output e, f