• Source
    1. #include<stdio.h>
    2. int main()
    3. {
    4. int i,j,n;
    5. printf(" Please, Enter the Range : ");
    6. scanf("%d",&n);
    7. for(i=1;i<=n;i++)
    8. {
    9. for(j=1;j<=i;j++)
    10. {
    11. printf("%d ",j);
    12. }
    13. printf("\n");
    14. }
    15. return 0;
    16. }