My task is to create a program using nested loops to create a display of stars on the screen that look like this...
I can't see what is wrong with my code, there's probably something really silly missing. Please could someone point me in the right direction?
public class BackwardTriangle
public static void main (String args);
//outer loop to count rows
for (int row = 1; row <=5; row++)
//first inner loop to count spaces
for (int space = 0; space < row -1; space--)
//second inner loop to count stars
for (int star =1; star <=5 -row; star++)