Google Add

Search

Write a Program to Print Triangle Pattern of Digit in Reverse Order


Write a Program to Print Triangle Pattern of Digit in Reverse Order. You have to print the triangle pattern of digit in Reverse order.

Pattern is

4 3 2 1
4 3 2
4 3
4

Program to Print Triangle Pattern of Digit in Reverse Order

// Program

#include <stdio.h>

main()
{
   
   int i,j;
   
   for(i=0;i<=4;i++){
       for(j=4;j>i;j--){
           printf("%d",j);
       }
       printf("\n");
   }
}


Write a Program to Move all Zeros at the end of an array

Linked List Questions

Write a Program to Delete an Element of an Array

No comments:

Post a Comment