UVA 488 - Triangle Wave

Problem PDF

Solution:

#include
int main()
{
    int n,b,c,i,l,j,k;
    scanf("%d",&n);
        for(i=0;i0;k--)
                {
                    for(l=k;l>0;l--)
                    printf("%d",k);
                    printf("\n");
                }
                if(j==c-1 && i==n-1)
                continue;
                printf("\n");
            }

        }

    return 0;
}
https://github.com/Shipu/OnlineJudgeProblemSolutionWithCPlusPlus/tree/master/uva/488/488.cpp