Skip to content
Snippets Groups Projects
halfinvpynum.c 243 B
Newer Older
Arul Murugan R's avatar
Arul Murugan R committed
#include<stdio.h>

int main(){
    int i,j,n,x;
    printf("Enter no of rows to be displayed : ");
    scanf("%d",&n);
    for(i=n;i>0;i--){
        for(j=i,x=1;j>0;j--,x++){
            printf("%d ",x);
        }
        printf("\n");
    }
}