0

How to print table of 5 using for loop?

14th Jun 2017, 8:08 AM
Kishan Mittal
2 Answers
+ 18
for (int stp = 0; stp <= 10; stp++) { System.out.println(stp*5); }
14th Jun 2017, 8:11 AM
Valen.H. ~
Valen.H. ~ - avatar
+ 2
This is hopefully idiomatic Java 8 and will make you look things up and learn more. Here: https://code.sololearn.com/c14usSennsfL/#java
14th Jun 2017, 8:25 AM
Venkatesh Pitta
Venkatesh Pitta - avatar