please. i really don't know what to do.
i must answer this problem for me to advance in other exercises.
here's the sample problem:
n=4
1234
123
12
1
so far, this is the code that made:
#include<stdio.h>
main()
{
int n,x,y;
clrscr();
printf("n=");
scanf("%d",n);
for (x=1; x<=n; x++)
{
for (y=x; y<=n; y++)
printf("%d",y);
printf("\n");
}
getch();
}
and the sample output of this is:
n=4
1234
234
34
4
:( i'm having a hard time on this one.
thanks in advance for the help.