public class Main
{
private static void DrawParallelogram(int width, int height, char character)
{
for (int i = 0; i < height; i++)
{
// Write character
for (int j = 0; j < width; j++)
{
System.out.print(character);
}
System.out.println();
// Write spaces
for (int c = 0; c <= i; c++)
{
System.out.print(" ");
}
}
}
public static void main(String[] args)
{
DrawParallelogram(10, 4, '*');
}
}