#include<stdio.h>
void main()
{
    int i,j,r;
    printf("\n Enter the number of rows:");
    scanf("%d",&r);
    for(i=1;i<=r;++i)
    {
        printf("\n");
        for(j=1;j<=i;++j)
        {

            printf("\t 1");
        }
        printf("\n");
    }
}






   




Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: