#include<stdio.h>
#include<conio.h>
void main()
{
int a;
printf("\nEnter number of inputs: ");
scanf("%d", &a);
for( int x=1; x<=a; x++ )
{
for( int y=a-x+1; y>=1; y--)
{
printf("%d",y);
}
printf("\n");
}
getch();
}
im still a noob. i know the output of this one. but i cant seem really understand the logic. i forgot what our instructor told us. :(