Declare k, d, and s so that they can store an integer , a real number, and a small word (under 10 characters ). Use these variables to first read in an integer , a real number, and a small word and print them out in reverse order (i.e., the word, the real, and then the integer ) all on the same line, separated by EXACTLY one space from each other. Then, on a second line, print them out in the original order (the integer , the real, and the word), separated again by EXACTLY one space from each other.

Declare  k, d, and s so that they can store  an integer , a real number, and a small word (under 10 characters ).  Use these variables  to first read in an integer , a real number, and a small word and print them out in reverse order (i.e., the word, the real, and then the integer ) all on the same line, separated by EXACTLY one space from each other.  Then, on a second line, print them out in the original order (the integer , the real, and the word), separated again by EXACTLY one space from each other.

LANGUAGE: C++

CHALLENGE:

Declare  k, d, and s so that they can store  an integer , a real number, and a small word (under 10 characters ).  Use these variables  to first read in an integer , a real number, and a small word and print them out in reverse order (i.e., the word, the real, and then the integer ) all on the same line, separated by EXACTLY one space from each other.  Then, on a second line, print them out in the original order (the integer , the real, and the word), separated again by EXACTLY one space from each other.

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days – Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level