Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using the switch statement, write a C# program that - Asks the user to input an integer If the integer is equal to 2, then

image text in transcribed

Using the switch statement, write a C# program that - Asks the user to input an integer If the integer is equal to 2, then output a message "your input is 2". - If the integer is equal to 4, then output a message "your input is 4". If the integer is equal to 8, then output a message "your input is 8". - Otherwise, output a message "your input is not what we want" -Using the if.. else if.. else if else, write a C# program that - Asks the user to input two integers If both of them are greater than zero, then output their sum If only one integer is greater than zero, then output their difference Otherwise, output a message "your input is wrong" Using the do while statement, write a C# program that Asks the user to input an integer - Output a table listed below: number square 0 0 1 4 9 16 25 36 49 64 81 100 4 6 10 Last modified: Wednesday, February 7, 2018, 10:33 AM

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

1. In what ways has flexible working revolutionised employment?

Answered: 1 week ago