for loop
sample output
b. 1 5 2 10 3 15 4 20 5 25
public class App{ public static void main(String []args){ int k=5; for(int i=1;i<=5;i++){ System.out.print(i+" "+k+" "); k+=5; } } }
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment