Write a program to print numbers in an ‘X’ 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 X pattern as shown below:If n = 5, then,1___5_2_4___3___2_4_1___5Note:- Please consider ‘_’ as space. Pre-requisites:LoopsInputs:Read an Integer ‘n’ from the userSample Output:Test Case 1:Enter the number: 41 4 23 231 4Test Case 2:Enter the number: 51 5 2 4 3 2 41 5 91 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 generate AP, GP, HP series Next PostWrite a program to print a triangle pattern as shown below You Might Also Like Write a program to print the following Pattern by using for loop -001 October 25, 2022 Write a program to find the average of elements stored in an array October 25, 2022 Write a program to check if the number is perfect or not October 25, 2022