Suppose num is an int variable, declared and initialized. The value of num is between 2 and 12. Write a C# nested-if-else statement to output • "Game status is WON" if num is 7 or 11 • "Game status is LOST" if num is 2, 3 or 12 "Game status is CONTINUE" if num is 4, 5, 6, 8, 9 or 10

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter4: Making Decisions
Section: Chapter Questions
Problem 7PE
icon
Related questions
Question

c#

Suppose num is an int variable, declared and initialized. The value of num is between
2 and 12. Write a C# nested-if-else statement to output
"Game status is WON" if num is 7 or 11
"Game status is LOST" if num is 2, 3 or 12
"Game status is CONTINUE" if num is 4, 5, 6, 8, 9 or 10
Transcribed Image Text:Suppose num is an int variable, declared and initialized. The value of num is between 2 and 12. Write a C# nested-if-else statement to output "Game status is WON" if num is 7 or 11 "Game status is LOST" if num is 2, 3 or 12 "Game status is CONTINUE" if num is 4, 5, 6, 8, 9 or 10
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Introduction to computer system
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage