/*
    Create Pyramid
    Version 1.0
    Date 14:32 22/07/2019
    by DreamVB
*/

#include <stdio.h>
#include <stdlib.h>

int main()
{
    int x = 0;
    int y = 0;
    int rows = 8;

    printf("Enter how many rows you want: ");
    scanf("%d",&rows);

    while(x <= rows){
        for(y=1;y<=x;y++){
            //Draw stars for the Pyramid
            printf("* ");
        }
        //Add new line after each row.
        printf("\n");
        x++;
    }

    return 0;
}
