wap to print the patten in java using for loop
12
1 2 3
Answers
Answered by
1
Answer:
I think u mean
1 2
1 2 3
Explanation: Not writing the whole java program just the logic!
- for(int i = 1; i <= 2 ; i++){
- for(int j = 1; j <= i+1; j++)
- System.out.print(j + " ");
- System.out.println();
- }
Similar questions