package pl.codegym.task.task03.task0314;
/*
Tabliczka mnożenia
*/
public class Solution {
public static void main(String[] args) {
int a = 1;
while (a <=10);
int b = 1;
while (b <= 9) ;
System.out.println(a * b + b++);
System.out.println(a * b);
a++;
}
}
Program run to loong dlaczego ?
Under discussion
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Gellert Varga
14 January 2021, 18:03
This code is an endless loop.
You was not write anything into the loop-body:
so the loop does nothing, but the condition is true forever, so the program can't go ahead 0