Ok thanks. I managed to fix my code and get the right output. Here it is.
public class UsingLoops {
public static void main(String[] args) {
for (int line = 1; line <= 5; line++) {
...
Type: Posts; User: m2msucks
Ok thanks. I managed to fix my code and get the right output. Here it is.
public class UsingLoops {
public static void main(String[] args) {
for (int line = 1; line <= 5; line++) {
...
Display the following: Using loops
1
21
321
4321
54321
This is my attempt.