Ask Question
Yesterday, 23:00

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.

+4
Answers (1)
  1. Yesterday, 23:28
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers