Six major in congenital FOR cycles on August 22, 2004

xiaoxiao2021-03-06  100

1,

/ * * Created on 2004-8-22 * * Todo to change the template for this generated file go to * window - preferences - java - code style - code templates * /

/ ** * @Author diyer6 * * Todo to change the Template for this generated type comment go to * window - preferences - java - code style - code templates * // * This picture is the result: ******* *** ********* ******** ******* ***** * ***** **** *** ** ** / Public class xinghaoone {public static void main (string [] args) {for (int i = 10; I> 0; i -) {for (int J = 0; j <10-i; j ) {system.out .print ("" ");

For (int o = i; o> 0; o -) {system.out.print ("*");} system.out.print ("/ n");}}

2,

/ * * Created on 2004-8-22 * * Todo to change the template for this generated file go to * window - preferences - java - code style - code templates * /

/ ** * @Author diyer6 * * Todo to change the Template for this generated type comment go to * window - preferences - java - code style - code templates * // * This picture is print results: ******* *********************************************************

* / public class xinghaotwo {

Public static void main (string [] args) {for (int i = 10; i> 0; i -) {for (int N = i; n <11; n ) {

System.out.print ("*");} system.out.print ("/ n");}}}

3,

/ * * Created on 2004-8-22 * * Todo to change the template for this generated file go to * window - preferences - java - code style - code templates * /

/ ** * @Author diyer6 * * Todo to change the Template for this generated type comment go to * window - preferences - java - code style - code templates * // * This picture is the result: ******* ********************************************************* / Public class xinghaothree {

Public static void main (string [] args) {for (int i = 10; i> 0; I -) {for (int J = 0; J

System.out.print ("*");

System.out.print ("/ n");

}

}

}

4,

/ * * Created on 2004-8-22 * * Todo to change the template for this generated file go to * window - preferences - java - code style - code templates * /

/ ** * @Author diyer6 * * Todo to change the Template for this generated type comment go to * window - preferences - java - code style - code templates * // * This picture is the print result:

* **** ******* ****** ******** ******** ******** ************** *****

* / public class xinghaofour {

Public static void main (string [] args) {for (int i = 10; i> 0; I -) {for (int J = i; j> 1; j -) {system.out.print (" ");} For (int N = i; n <11; n ) {system.out.print (" * ");} system.out.print (" / n ");}}}

5,

/ * * Created on 2004-8-22 * * Todo to change the template for this generated file go to * window - preferences - java - code style - code templates * /

/ ** * @Author diyer6 * * Todo to change the Template for this generated type comment Go to * window - preferences - java - code style - code templates * // * This picture is the result:

*********************************************************** *********************************************************** **********

* / public class xinghaojuxing {

Public static void main (string [] args) {for (int i = 10; i> 0; i -) {for (int N = 0; nsystem.out.print ("*");

}

For (int J = i; j <11; j ) {

System.out.print ("*");

}

System.out.print ("/ n");

}

}

}

6,

/ * * Created on 2004-8-22 * * Todo to change the template for this generated file go to * window - preferences - java - code style - code templates * /

/ ** * @Author diyer6 * * Todo to change the Template for this generated type comment go to * window - preferences - java - code style - code templates * // * This picture is the print result:

*********************************************************** ***********************************************************

* / public class shishi {

Public static void main (string [] args) {for (int i = 10; i> 0; i -) {for (int f = 0; f <10; f ) {system.out.print ("*" }

System.out.print ("/ n");}}}

Let's take a note:

/ * * Created on 2004-8-22 * * Todo to change the template for this generated file go to * window - preferences - java - code style - code templates * /

/ ** * @Author diyer6 * * Todo to change the Template for this generated type comment go to * window - preferences - java - code style - code templates * // * This picture is the print result:

0 ********* 00 ******** 000 ******* 0000 ****** 0000 ****** 000000 **** * 0000000 **** 00000000 *** 000000000 ** 0000000000 *

* / public class zaishi {

转载请注明原文地址:https://www.9cbs.com/read-124500.html

New Post(0)