Question: Write code to do the following(C++): (note: this question tests your mastery level of using cin. You have to use cin>> to separate characters and
Write code to do the following(C++):
(note: this question tests your mastery level of using cin. You have to use "cin>>" to separate characters and numbers.)
As long as there are input from the keyboard buffer, display each item on a separate line in this way:
if it is a number, display the enter number.
if it is a character, display that character.
For example, if the user enters It is 3.24.
The output should be
I
t
i
s
3.24
Step by Step Solution
3.44 Rating (163 Votes )
There are 3 Steps involved in it
Here is the detailed and simplified C code for th... View full answer
Get step-by-step solutions from verified subject matter experts
