0

Write a program tho print the following pattern

1 22 333 4444

15th Feb 2017, 1:13 PM
Pathan Younus Khan
Pathan Younus Khan - avatar
4 Respostas
+ 1
@maksymzielinsku
15th Feb 2017, 1:45 PM
Pathan Younus Khan
Pathan Younus Khan - avatar
0
public class Program { public static void main(String[] args) { for(int i=1;i<=4;i++){ for(int j=1;j<=i;j++){ System.out.print(i); } System.out.print("\n"); } } }
15th Feb 2017, 1:36 PM
Maksym Zieliński
Maksym Zieliński - avatar
0
Dude is this C++ language ?
15th Feb 2017, 1:45 PM
Pathan Younus Khan
Pathan Younus Khan - avatar
0
Java. Copy and paste a double loop itself and refactor it according to language you want. You didn't specify what language you need
15th Feb 2017, 1:58 PM
Maksym Zieliński
Maksym Zieliński - avatar