Computers and Technology

Write an if-else statement that prints "Goodbye" if userString is "Quit", else prints "Hello". End with newline. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 #include #include using namespace std; int main() { string userString; cin >> userString; /* Your solution goes here */ if (userString = 'Quit'){ cout << "Goodbye" << endl; } else cout << "Hello" << endl; return 0; }

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 09:40, Tyrant4life
It is vital to research each of the services you plan to disable before implementing any change, especially on critical machines such as the: a. servers in the test environment. b. domain controller and other infrastructure servers. c. desktops that have previously been attacked. d. desktops used by upper-level management.
Answers: 2
image
Computers and Technology, 22.06.2019 19:00, detrickboucicaut
The fourth generation of computers emerged between 1970s and 1980s. which technological advancement brought about this generation of computers? which computer architecture was used most in this generation?
Answers: 3
image
Computers and Technology, 22.06.2019 20:00, bowmanari2154
What is used to analyze and summarize your data without graphical support
Answers: 1
image
Computers and Technology, 22.06.2019 21:10, itsmichaelhere1
Dameas communication challenge is due to which factor
Answers: 2
Do you know the correct answer?
Write an if-else statement that prints "Goodbye" if userString is "Quit", else prints "Hello". End w...

Questions in other subjects:

Konu
Biology, 26.06.2019 14:30