|
#include <stdio.h>
#include <stdlib.h>
int main ()
{
int i, j, n;
printf ("please input a number:");
scanf ("% d",&n); // Enter 4 here
for (i = 1; i <= n; i ++)
{
for (j = i; j> 0; j--)
printf ("% d", j);
printf ("\n");
}
system ("PAUSE");
return 0;
} |
|