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

1 Expert Approved Answer
Step: 1 Unlock

Here is the detailed and simplified C code for th... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!