Answers for "mj"

C++
0

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;
}
Posted by: Guest on December-07-2020

Code answers related to "mj"

Browse Popular Code Answers by Language