this is a while loop structure....
the output is this
.....*
....***
...*****
..*******
.*********
***********
supposed to be... this must be a perfect triangle...
the dots represents blank spaces
my code was this
public class stars{
public static void main(String args[]){
int stars=5, space=5;
while(int i=1; i<=stars; i+2){
while(int j=10;j>=spaces; j--){
System.out.print(" ");
}
System.out.print("*");
System.out.print("\n");
}
}
}
if there's some thing wrong with it kindly fix please...