Computer Science, asked by rameshbhogadhi4, 7 months ago

analyse the given program segment and answer the following questions : for(int i=1;i <=10;i+=2) System. out. println (i*i)​

Answers

Answered by Pablu
0

Answer:

9 25 49 81

Explanation:

for i = 1 to 10, there are 10 numbers, and i+=2 means it will start printing from 3 to 9, which is 3, 5, 7, 9.

That's why it will print 9 25 49 81

Hope you get it !

Similar questions