I've work on this problem for 5 hours now and I can only make it work halfway. this is the question
Read a 4 character number. Output the result in in the following
format, input = 9873
3 ***
7 *******
8 ********
9 *********
If one of the numbers is not a digit, then put a ? mark
input = 98a3
3 ***
a ?
8 ********
9 *********
Perhaps enter the data as a string not as a number array as you indicate it can have alphabetic characters as well. Then go through the string array to check isDigit in which case print '*' else print '?'
how do you do the ascii numbers? like where do you plug them in into?
I'm just missing how to arrange them in order
for example if I plug in 3 4 5 2 I get
***
****
*****
**
and what I want to get is
**
***
****
*****