JAVA
Use a forloop to print all of the numbers from 23 to 89 with 10 numbers on each line (the last line will have less than 10 numbers), Print one space
between each number
Hint- think about what values would be at the end of each line and what they have in common (think about modular division). You can then add an if
block inside your loop which prints a new line when one of these numbers is encountered

Respuesta :

public class JavaApplication64 {

   

   public static void main(String[] args) {

       int count = 0;

       for (int i = 23; i <= 89; i++){

           if (count == 10){

               System.out.println("");

               count = 0;

           }

           System.out.print(i+" ");

           count += 1;

       }

   }

   

}

I hope this helps!

ACCESS MORE