mj code example
Example: mj
#include <iostream>
using namespace std;
int main () {
cout << "Basketball player? (y/n): ";
char response;
cin >> response;
if (response == 'y') {
cout << "Michael Jordan" << endl;
} else {
cout << "Musician? (y/n): ";
char response2;
cin >> response2;
if (response2 == 'y') {
cout << "Michael Jackson" << endl;
} else {
cout << "Michael B. Jordan" << endl;
}
}
return 0;
}