Ask Question
20 June, 09:06

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. 20 June, 12:08
    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?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers