Computer Science, asked by rashi19420, 11 months ago

This is the java programming. Please tell the output of the following ​

Attachments:

Answers

Answered by anishasa
0

Answer:

13131313131313131313131

Explanation:

n=5;5<=50;n=n+2

5%4 = 1 Modulus is the remainder

1 will be printed and for loop will be incremented

n = n+2 =5+2 =7%4 = 3 printed 3 and then for loop will get incremented

n = n+2 = 7+2 = 9%4 = 1 and so on.......

Similar questions