Skip to content

this might help #1

Open
Open
@fiendvalak

Description

@fiendvalak

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

int main()
{
int i,j,s,x,n;
scanf("%d",&n);
for(i=1; i<=n; i++)
{
s=n-1;
x=i;
for(j=1;j<=i;j++)
{
printf("%d ",x);
x+=s;
s--;
}
printf("\n");
}
return 0;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions