Write a program to print a triangle pattern as shown below Post author:Coding Safar Post published:October 25, 2022 Post category:C Assignment / C Language Basics / C Programming / C Programming for Beginners Description:Read a number from user. Let’s say if number is 5, you need to print numbers in triangle pattern as shown below:If n = 5, then,1 2 3 4 56 _ _ 78 _ 910 1112Note:- Please consider ‘_’ as space. You need to leave space between 2 numbersPre-requisites:LoopsInputs:Read an Integer ‘n’ from the userSample Output:Test Case 1:Enter the number: 41 2 3 45 67 89Test Case 2:Enter the number: 51 2 3 4 56 78 910 1112 108 Tags: C Language Basics, C Programming Share With Your Friends Share this content Opens in a new window X Opens in a new window Facebook Opens in a new window LinkedIn Opens in a new window WhatsApp Read more articles Previous PostWrite a program to print numbers in an ‘X’ pattern as shown below Next PostWrite a program to print a print pyramid pattern shown below You Might Also Like Introduction to C Programming October 22, 2022 Write a program to generate positive Fibonacci numbers. October 25, 2022 Write a program to print numbers in an ‘X’ pattern as shown below October 25, 2022