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
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
India Languages,
3 months ago
Math,
3 months ago
History,
7 months ago
Physics,
7 months ago
Biology,
1 year ago