Javatpoint Logo

91-9990449935

 0120-4256464


Write java program to print the following series

By: mohammadsaleembasha@gmail.com On: Tue Jun 14 18:17:01 IST 2016     0 0 0  0
1
1 1
1 1 1
1 1 1 1
0

 

Pls. try the below program.

class A{
public static void main(String []args){
for(int a=1;a<=4;a++){
for(int b=1;b<=a;b++){
System.out.print("1");
}
System.out.println();
}
}
}
0

By: pant8g@gmail.com On: Wed Jun 15 14:24:14 IST 2016 0 0 0 0
Are You Satisfied :0Yes0No


PLEASE REPLY

Please login first to post reply. Login please!