Question: 1. Use C program by using Visual Studio: a) Write a program that asks for integer and then prints all the intgers from (and including)
1. Use C program by using Visual Studio:
a) Write a program that asks for integer and then prints all the intgers from (and including) that value up to (and including) a value larger by 10. (That is, if the input is 5, the output runs from 5 to 15.) Be sure to separate each output value by a space or tab or newline. " Use Whileloop"
b) Write a switch statment that checks nextChoice. If 0, print "Rock". If 1, print "Paper". If 2, print "Scissors". For any other value, print "Unknown". End with newline. Do not get input from the user; nextChoice is assigned in main().
c) Write a switch statment that checks origLetter. If 'a' or 'A', print "Alpha". If 'b' or 'B', print "Beta". For any other charachter, print "Unknown". End with newline.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
