//Reverse order of stars #include #include int main() { int i,j,n; printf("Enter max stars in a line: "); scanf("%d",&n); for(i=n;i>=1;i--) { for(j=1;j<=i;j++) { printf("%d ",j); } printf("\n"); } getch(); return 0; }