i need a link on how to do loops please haven't touched that yet and i really want to complete this task using loops as suggested by Diego
link to study loops
Under discussion
Comments (4)
- Popular
- New
- Old
You must be signed in to leave a comment
mehdi
28 January 2019, 12:12
public class Solution {
public static void mult(int a){
for(int i=0;i<10;i++){
System.out.print(a*(i+1)+" ");
}
System.out.println("");
}
public static void main(String[] args) {
//write your code here
mult(1);
mult(2);
mult(3);
mult(4);
mult(5);
mult(6);
mult(7);
mult(8);
mult(9);
mult(10);
}
}
0
Tatoo Mindine
29 January 2019, 05:53
thanks mate, i owe you one
+1
mehdi
28 January 2019, 12:12
https://www.geeksforgeeks.org/loops-in-java/
0
Tatoo Mindine
29 January 2019, 05:54
thanks bro
0