Computer Science, asked by rd784737, 1 month ago

What will be the output?​

Attachments:

Answers

Answered by 16233
0

Answer:

2 5 10 17 26 37 50 65 82 101

it is the output

brainliest me

Answered by anindyaadhikari13
2

Required Answer:-

Question:

  • Find the output of the given códe snippet.

Answer:

The output for the given program is as follows,

2 5 10 17 26 37 50 65 82 101

Explanation:

The given loop iterates in the range i = 1 to 10.

The program prints the value of (i² + 1) after each iteration.

When i = 1,

i² + 1 = 2

When i = 2,

i² + 1 = 5 and so on.

In this way, the program prints the series as,

2 5 10 17. . . . .

Similar questions