Results 1 to 4 of 4
Hybrid View
-
24th December 2008 00:57 #1Registered User
Join Date: Dec:2008
Location: Karlsruhe
Posts: 13
...
public class Tannenbaum {
int maxSize;
public Tannenbaum(int maxSize) {
this.maxSize = maxSize+1;
}
public void print() {
printTanne(0);
}
private void printTanne(int size) {
if(size<=maxSize) {
for(int i=1; i<size+1; i++) {
for(int j=0; j<i; j++) {
System.out.print("*");
}
System.out.println();
}
printTanne(size+1);
}
}
public static void main(String[] args) {
Tannenbaum t = new Tannenbaum(6);
t.print();
}
}
-
24th December 2008 10:10 #2
printDryjkata (), ,
: XaMaB; . 0.42
In God we Trust (all others must submit a X.509 certificate). , ()
-
24th December 2008 10:53 #3Registered User
Join Date: Dec:2008
Location: Karlsruhe
Posts: 13
*
*
**
*
**
***
*
**
***
****
*
**
***
****
*****
*
**
***
****
*****
******
*
**
***
****
*****
******
*******
*
**
***
****
*****
******
*******
********
*
**
***
****
*****
******
*******
********
*********
*
**
***
****
*****
******
*******
********
*********
**********
*
**
***
****
*****
******
*******
********
*********
**********
***********
-
24th December 2008 11:02 #4
,
, . 2 "*". printDryjkata ()for(int i=1; i<size+1; i++) {
for(int j=0; j<i; j++) {: XaMaB; . 0.42
In God we Trust (all others must submit a X.509 certificate). , ()




Reply With Quote
Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in