How do I print out a user's input, letter for letter in C? -
the assignment has quite bit of stuff incorporated unfortunately, professor is... lacking in explanation.
i'm not quite sure on how syntax if read user's input, print out each letter input in vertical line.
in long-run, goal print out each character word in vertical line, print out binary values right of them.
ex:
input = hello expected output = h e l l o
one of keys programming breaking problems down smaller, more manageable pieces. take 1 step @ time, adding 1 feature each go round.
read user's input. don't else, read in.
print user's input typed it.
hello
now print input character character. print
h
,e
,l
, etc. you'll need write loop this.hello
(the end result same step #2, code longer. in preparation next step.)
now print each character on separate line instead of on same line.
h e l l o
finally, convert each letter uppercase print them.
h e l l o
if don't know how particular step, that's google comes in. example:
Comments
Post a Comment