can someone help me how to output things like percent of whitespace or characters please?
can someone help me how to output things like percent of whitespace or characters please?
I can help you conceptually, but without any code of your own I don't feel very motivated to write any myself.
Conceptually: read from some input one character at a time, testing whether it's whitespace or not, incrementing running totals accordingly. Then do some math.
i need to input a string and then i need the program to differentiate between what is numbers, letters, whitespace, and all that stuff
a loop and if statement
that should get you started