Witam a wieć musze zrobić z * klepsydre * * * * *
<ort>* * * * *
* *
*
* *
-
-
-
- *</ort>
na razie udało mi sie zrobic cos takiego :
- *</ort>
-
-
public class Zad5{
public static void main(String[] args){
for (int j = 10; j>0; j--)
{
for(int i = 0; i< j; i++){
System.out.print("*");
}
System.out.print(" "+"\n");
}
for(int a = 1; a <= 10; a++){
for(int b = 0; b < a; b++)
System.out.print("*");
System.out.print("\n");
}
System.out.print("\n");
Pytanie jak za każda nowa linia ma się robic kolejna spacja ?