Could someone please tell me why below code doesn't work?
public class Solution {
public static void main(String[] args) {
for(i=1; i<=10; i++) {
for(j=2; j<=10; j++) {
System.out.print(i*j + " ");
}
System.out.println();
}
}
Need help
Under discussion
Comments (2)
- Popular
- New
- Old
You must be signed in to leave a comment
krystian
8 November 2019, 12:53
Still doesnt work
0
YoungDuo
8 November 2019, 10:05
You should define i and j like for(int i=1;i<=10;i++)
0