Input three random characters and make sure they are inputted on different lines. Print out the three strings in order, each on a different line, using only 1 std::cout statement and newline characters (\n). An initial code with 1 std::cout is already provide for you. Don't add more std::cout's! Input Three lines containing a character on each. A B C Output Three lines containing a character on each. A B C
The Answer to the Question
is below this banner.
Can't find a solution anywhere?
NEED A FAST ANSWER TO ANY QUESTION OR ASSIGNMENT?
Get the Answers Now!You will get a detailed answer to your question or assignment in the shortest time possible.
Here's the Solution to this Question
#include <iostream>
int main() {
char letter1;
char letter2;
char letter3;
std::cin>>letter1;
std::cin>>letter2;
std::cin>>letter3;
std::cout<<letter1<<"\n"<<letter2<<"\n"<<letter3<<"\n";
system("pause");
return 0;
}