So we were asked to make a program converting Hex values into decimals then printing a pattern for the result Eg.
input: 0x12
desired Output:
* *****
* *
* *****
* * *
* *****
my output:
*
*
*
*
*
*****
*
*****
* *
*****


How do I place them horizontally?
P.S. I made a switch case and manually typed the patterns in printf. Please be easy on me, I'm just a beginner.
Thanks in advance