Follow these steps :

- Declare a character array of (say) 50 bytes
- use 'getchar()' or 'gets' to accept input.
- Store the input in array.
- Print the array (as required).