+ 1

how to display this program?

# ## ### #### ##### ###### #######

17th Nov 2018, 5:46 PM
Emran Afghan
Emran Afghan - avatar
6 ответов
+ 1
public class Main { public static void main(String args[]) { for(int i=1;i<=7;i++) { for(int j=1;j<=i;j++) { System.out.print('#'); } System.out.println(); } } } //sorry for the indentation
19th Nov 2018, 10:27 AM
Rishi Anand
Rishi Anand - avatar
0
Use nested for loops.
17th Nov 2018, 5:56 PM
Mustafa K.
Mustafa K. - avatar
0
public class tc { public static void main(String...Naufal) { int a = 7; for (int i = 0; i<a; ++i){ for (int j = 0; j<=i; j+=1){ System.out.print("#"); } System.out.print("\n"); } } } /* # ## ### #### ##### ###### ####### */
18th Nov 2018, 12:15 PM
Nopal Opal
Nopal Opal - avatar
0
i made it
20th Nov 2018, 7:08 AM
Gauhar Rahman Niazi
Gauhar Rahman Niazi  - avatar
0
😍😍
17th Dec 2018, 7:23 AM
Emran Afghan
Emran Afghan - avatar
0
😍😍
17th Dec 2018, 7:23 AM
Emran Afghan
Emran Afghan - avatar