Menu

[solved] – Question 99426

Write an if-else statement that prints “Goodbye” if userString is “Quit”, else prints “Hello”. End with newline.
#include <iostream>
#include <string>
using namespace std;

int main() {
string userString;

cin >> userString;

/* Your solution goes here */

return 0;
}

Expert Answer


OR


Leave a Reply

Your email address will not be published. Required fields are marked *