USING 2D ARRAY,WAP IN JAVA TO PRINT THE FOLLOWING PATTERN:
1
12
123
1234
Answers
Answered by
1
Answer:
Explanation:
import java.io.*;
public class pattern
{
public static void main(String args[])
{
int i, j,num;
for(i=1; i<=4; i++)
{
for(j=0; j<=i; j++)
{
System.out.print(j);
}
}
}
rockbottom619rip:
I'm sorry to say but,I mentioned the use of 2D array.
Similar questions