How can i fix my code so that a teepee is properly formed? here is what i currently have (my output is uploaded as an image): public static void teepee(int a){
for(int i=a; i>0; i--){
for(int j=a; j>0; j--){
System.out.print(" ");
}
System.out.print("/");
for(int k=i; k System.out.print(" ");
}
System.out.println("\\");
}
}


How can i fix my code so that a teepee is properly formed? here is what i currently have (my output

Solved
Show answers

Ask an AI advisor a question