How many times is the loop executed in the following program? for (i = 0, j = 10; i <= 100; i++){ j = j * i; }; How many times is the loop executed in the following program? for (i = 0, j = 10; i <= 100; i++){ j = j * i; }
Answers
Answered by
2
HEY MATE THIS IS YOUR ANSWER......
THE LOOPS EXECUTED 100 TIMES IN A PROGRAM..........
HOPE IT WILL HELP YOU DEAR......
THE LOOPS EXECUTED 100 TIMES IN A PROGRAM..........
HOPE IT WILL HELP YOU DEAR......
Answered by
0
Answer: 101 times
Step-by-step explanation:
- In this C pseudo code we see that the value of i starts from 0 and given that i<=100.
- So, the number of times the loop will be executed 101 times and after that the condition of loop will become false and then it will stop.
- Hence, the required number of times loop will be executed is 101.
#SPJ2
Similar questions