Answered step by step
Verified Expert Solution
Question
1 Approved Answer
this is c++ 10. What is an output after the following while loop executed? (16 pts.) a) int i = 0; int num = 5;
this is c++ 10. What is an output after the following while loop executed? (16 pts.) a) int i = 0; int num = 5; while (i < num) { i ++; cout << i << " is less than " << num <<" "; } b) int i, j; i = 2; while (i <= 4) { j = i * 3; cout << "j is " << j <<" "; i ++; } c) int i = 3; while (i < 10) { i ++; if (i == 7) { break; } cout << i <<" "; } d) int i = 9; while (i > 3) { i --; if (i == 5) { break; } cout << "i is " << i <<" "; }
Step 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