left Upper Triangle

 #include<stdio.h>

int main()

{

    int rows=5,rowno,colno;


    for(rowno=1;rowno<=rows;rowno++)

    {

        printf("\nRow No %d-  ",rowno);


        for(colno=1;colno<=rows+1-rowno;colno++)

        {

            printf("%d",colno);

        }

    }

}

Comments

Popular posts from this blog

Single Program Using All Automatic String Functions

C program for subtraction of two matrices (2D Arrays)

C program for Multiplication of Two matrices