UVA 488 - Triangle Wave

UVA Sep 1, 2020

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

Tags

Great! You've successfully subscribed.
Great! Next, complete checkout for full access.
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.