Answered step by step
Verified Expert Solution
Question
1 Approved Answer
in c++ plz CSC 2111 Lab 02 Due Date: 01/22/2019 Before 10:00 am Objectives: oping and branching control structures 2. Construct counter, sentinel, fl 3.
in c++ plz
CSC 2111 Lab 02 Due Date: 01/22/2019 Before 10:00 am Objectives: oping and branching control structures 2. Construct counter, sentinel, fl 3. Debug repetition structures ag, and EOF controlled repetition structures Question 1: Write a program that uses while loops performing the following steps: A. Prompt the user to input two integers: firstNum and secondNum. Add a check such that firstNum is less than secondNum. B. Output the numbers between (inclusive) firstNum and secondNum c. Output the sum of the numbers between (inclusive) firstNum and secondNum. D. Output all odd numbers between (exclusive) firstNum and secondNum. Match the output of the examples below. Example 1: Enter two space separated numbers: 5 13 5 6 7 89 10 11 12 13 Sum is: 81 79 11 Question 2: Write a pro Question 1. Match the output of the examples be t uses for loops that performs the same steps as gram that Example 1: Enter two space separated numbers: 7 12 789 10 11 12 Sum is: 57 9 11Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started