Printing numbers

Report a typo

How many numbers does the following code print?


for (int i = 0; i < 5; i++) {
    System.out.println(i);
    for (int j = 0; j < 5; j++) {
        System.out.println(j);
        break;
   }        
}
Enter a number
___

Create a free account to access the full topic