Question: Please Write the program in standard C and it should work on any IDE. Here, the user provides an array of characters that the programmer

Please Write the program in standard C and it should work on any IDE.

Here, the user provides an array of characters that the programmer will show in an X pattern. The array can only be 1-9 characters long but can be any characters the user chooses. Again, see example below

Input ! @ # $ Output

! ! @ @ # # $ # # @ @ ! !

The characters will be stored in lines in an input file. Your input file is cp2.txt. You will read in the characters from the input file the characters will be separated by white space. An example of an input file is below (the first line has 3 characters, so your output X will consist of those three characters, the 2nd line has four characters, so your output X will consist of those four characters):

2 e 1

! @ # $

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!