+ 3

1,3,6,10,15....n terms

java for loop program

2nd Sep 2018, 3:22 PM
Sarah
Sarah - avatar
2 Réponses
+ 18
for(int i=1,f=1; i<100; i+= ++f){ System.out.println(i); }
2nd Sep 2018, 3:35 PM
LukArToDo
LukArToDo - avatar
+ 4
Thanks
4th Sep 2018, 6:44 PM
Sarah
Sarah - avatar