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 92 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 Online C Compiler October 31, 2022 Introduction to C Programming October 22, 2022 Free Online Skill Test Advanced C Language (Test 9) November 6, 2022