[Solved] Diamond with a blank space inside


For the lower set of symbol you need to put a space before printing the star.Modifying the condition to s>=1, makes the flow enter the loop and prints a space.Earlier it was not entering the loop.This should get you the required output.

for(int s = y; s >= 1; s--)
            {
               System.out.print(" ");
            }

solved Diamond with a blank space inside