I did loop in loop with three variables two integers and one string because it's more challenging. Hint: The three variables are not in the same block. Good luck!
In the last task don't do something like this: String = "$$$$$$$$$$"; because it's very stupid. Of course you can but what if you need this matrix in size 20x20, or 100x100 ? Try loop in loop.
And remember:
System.out.println(); // that is: subsequent outputs will be printed on the next line
System.out.print(); // print in THIS line
Good luck!
For the last one, I used a while loop and did NOT use any multiplication to get the correct answer. I practically used the code for the "10 to 1" practice example. I added a string variable ex. String text = "$$$$$$$$$$"; and I used x--; to countdown from 10 leaving me with the correct answer. hopes this helps anyone who doesn't want to do multiplication.
Pienso que las tareas no son proporcionadas en dificultad a los contenidos que se ven en cada apartado. Por ejemplo, en el caso de los bucles, apenas se enseña la mecánica de un bucle while y ya te están poniendo tareas que requieren bucles while anidados, cuando uno no tiene por qué conocerlos de antemano. Esto sucede en cada sección, donde se mezclan tareas extremadamente simples con otras innecesariamente complicadas y que requieren aplicar técnicas que no se han visto.
GO TO FULL VERSION