I need to write a program where the user inters a 5-digit number and the program outputs exclamation points corresponding to the digit. So, it should look something like this.
and displays question marks when the user enters something other than a number
Input:
14ab5
1 !
4 !!!!
a ?
b ?
5 !!!!!
I know this is pretty simple but I have no idea where to even start, so if someone could give me some pointers to guide me through that would be great! Thanks!
Update:
I figured out how to separate the digits of the number by using:
Thanks, LendraDwi! For some reason, though, I can't find the answer I'm looking for in any of the recent posts... Do you remember what the post was called? I have no idea what topic this would be under.