Computer Science, asked by aniket2157rathod, 4 months ago

explain go to loop statement with example​

Answers

Answered by pinki456sahu
0

Answer:

Example of goto statement

Explanation: In this example, we have a label addition and when the value of i (inside loop) is equal to 5 then we are jumping to this label using goto. This is reason the sum is displaying the sum of numbers till 5 even though the loop is set to run from 0 to 10.

Explanation:

Example of goto statement

Explanation: In this example, we have a label addition and when the value of i (inside loop) is equal to 5 then we are jumping to this label using goto. This is reason the sum is displaying the sum of numbers till 5 even though the loop is set to run from 0 to 10.

Similar questions