Ask Question
22 September, 08:40

Write a switch statement that checks nextChoice. If 0, print "Rock". If 1, print "Paper". If 2, print "Scissors". For any other value, print "Unknown". End with newline.

+3
Answers (1)
  1. 22 September, 10:12
    0
    by using switch case

    switch (nextChoice) {

    case 0: cout<<"Rock"; break;

    case 1: cout<<"Paper"; break;

    case 2: cout<<"Scissors"; break;

    default: cout<<"Unknown"; break;

    }
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write a switch statement that checks nextChoice. If 0, print "Rock". If 1, print "Paper". If 2, print "Scissors". For any other value, ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers