Computer Science, asked by selvarani27, 3 months ago

Trace the step by step execution of algorithm for factorial (3)​

Answers

Answered by Anonymous
1

hi dear

2 : Read n.Start 3 : Initialize counter variable i to 1 and fact to 1.Start 4 : if i <= n go to step 5 otherwise goto step 7.Start 5 : calculate fact = fact * i.Start 6 : increment counter variable i and goto step 4.Start 7

hope it helps

please mark me pls

#smiley

Similar questions