Number Triangle Pattern in C Programming

By | June 20, 2019

“Number Triangle Pattern in C Programming” is a C language program to display to print a left downward number triangle as shown in the figure below:

Print Number Triangle Left Downward Pattern in C Programming

Print Number Triangle Left Downward Pattern in C Programming

Source code for printing number triangle left downward is as follows:

/*
Write a program to print number pattern
left triangle downward in c programming 
language as shown below

54321
5432 543 54 5 */
#include<stdio.h>
int main() { int row, col; for( row = 1; row <= 5;row++) { for(col=5; col>=row; col--) printf("%d",col); printf("\n"); } return 0; }

Leave a Reply

Your email address will not be published. Required fields are marked *