+ 2

Plz anyone tell me how to remove extra * from my pattern P?

https://code.sololearn.com/cIKJHq0WfDBx/?ref=app

3rd Sep 2018, 3:31 PM
Priya Kandu
Priya Kandu - avatar
7 Respuestas
+ 1
public class Program { public static void main(String[] args) { int i,j; //****** for(i=1;i<=7;i++) // ----------------edited---------------- { System.out.print("*"); } System.out.println(); // ----------------edited---------------- //* //* //* for(i=1;i<=4;i++) { for(j=1;j<=1;j++) { System.out.print("* *"); } System.out.println(); } //***** for(i=1;i<=6;i++) { System.out.print("*"); } //* //* //* // System.out.println("\t"); for(i=1;i<=7;i++) { for(j=1;j<=1;j++) { System.out.print("*"); } System.out.println(); } } }
3rd Sep 2018, 3:37 PM
Steppenwolf
Steppenwolf - avatar
+ 1
// createb by cd... public class Program { public static void main(String[] args) { int i,j; //****** for(i=1;i<=7;i++) // ----------------edited---- { System.out.print("*"); } System.out.println(); // ----------------edited------ //* //* //* for(i=1;i<=4;i++) { for(j=1;j<=1;j++) { System.out.print("* "); } System.out.println(); } //***** for(i=1;i<=7;i++) { System.out.print("*"); } //* //* //* // System.out.println("\t"); for(i=1;i<=7;i++) { for(j=1;j<=1;j++) { System.out.print(" "); } System.out.println(); } } }
4th Sep 2018, 1:57 AM
Chhagandas Pawar
Chhagandas Pawar - avatar
+ 1
your code same condition same program same line some changes but output different
4th Sep 2018, 1:58 AM
Chhagandas Pawar
Chhagandas Pawar - avatar
0
😄
3rd Sep 2018, 5:26 PM
Priya Kandu
Priya Kandu - avatar
0
please accept my challenges
3rd Sep 2018, 5:39 PM
Chhagandas Pawar
Chhagandas Pawar - avatar
0
ms kandu
3rd Sep 2018, 5:40 PM
Chhagandas Pawar
Chhagandas Pawar - avatar
0
yooo
4th Sep 2018, 1:24 AM
shubham thanedar
shubham thanedar - avatar