What is the output of the following program #include using namespace std; int main() { Enter...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
What is the output of the following program #include <iostream> using namespace std; int main() { Enter your answer int x=6,j, y=3; while(x>0) { for(j=1; j<=x; j++) { if (j%2= 1 | j==4){ y+=x; continue; } else if(y>=40) break; else y=24; } x==2; cout<<y; }} What is the output of the following program #include <iostream> using namespace std; int main() { Enter your answer int x=6,j, y=3; while(x>0) { for(j=1; j<=x; j++) { if (j%2= 1 | j==4){ y+=x; continue; } else if(y>=40) break; else y=24; } x==2; cout<<y; }}
Expert Answer:
Related Book For
Posted Date:
Students also viewed these computer network questions
-
Factor. x +15x+36
-
The Shady company purchased equipment on January 1, 2020. The cost of the equipment is $70,000, the residual value is $6,000, and it has a useful life of 4 years. The company's year end is December...
-
Find a . b. a = 4i + j, bi- 3j+k
-
PLEASE HELP. LAST ATTEMPT. ACCOUNTING. THANK YOU SOMUCH!!!!!!! Total estimated overhead costs for the two product lines are \( \$ 756,800 \). (a1) X Your answer is incorrect. Calculate overhead rate....
-
(a) Estimate the total power radiated into space by the Sun, assuming it to be a perfect emitter at T = 5500 K. The Suns radius is 7.0 10 8 m. (b) From this, determine the power per unit area...
-
Key comparative figures for Research In Motion and Apple follow. 1. What is the debt ratio for Research In Motion in the current year and for the prior year? 2. What is the debt ratio for Apple in...
-
What mechanisms are available to help provide stakeholders with an assurance that a company complies with environmental regulations?
-
A bank officer wants to determine the amount of the average total monthly deposits per customer at the bank. He believes an estimate of this average amount using a confidence interval is sufficient....
-
Lessee Company entered into a lease contract with Lessor Company. Both companies are calendar year companies that prepare annual financial statements. Both use straight-line depreciation with a...
-
Crane Library, a nonprofit organization, presented the following statement of financial position and statement of activities for its fiscal year ended February 28, 2024. Assets Current Assets Cash...
-
A business received a delivery of goods on 29 June 20X6, which was included in inventory at 30 June 20X6. The invoice for the goods was recorded in July 20X6. What effect will this have on the...
-
A jack-in-the-box (k = 100 N/m) is compressed a distance of 0.10 m into the box. What is the maximum speed that the head (m = 0.3 kg) will reach as it flies out toward a frightened child? At what...
-
Complete a regression analysis to determine total annual fixed and variable costs using the sales revenue and wage costs shown below. Sales Revenue Wage Costs January 24,900 11,300 February 24,200...
-
A 1-kg ball is moving to the right with a velocity of 2 m/s when it collides with a stationary 2-kg ball. After the collision, the 1-kg ball moves to the left with a velocity of 1 m/s. What is the...
-
You have a light spring which obeys Hooke's law. This spring stretches 2.88 cm vertically when a 2.30 kg object is suspended from it. Determine the following. (a)the force constant of the spring (in...
-
A HRM specialist wants to incorporate multiple predictors of future employee levels, including revenue per employee, store size to employees, and labor costs to all production costs. He/she would be...
-
On January 1, 2017, Alison, Inc. paid $85,700 for a 40 percent interest in the common stock of Holister Corporation. This investee had assets with a book value of $256,000 and liabilities of $83,500....
-
The population of Detroit, Michigan, decreased from 1,027,974 in 1990 to 688,701 in 2013 (Source: U.S. Census Bureau). Find the average rate of change in the population of Detroit, Michigan, over the...
-
In this exercise, you modify the program from ADVANCED Exercise 29. If necessary, create a new project named Advanced30 Project and save it in the Cpp8\Chap13 folder. Also create a new source file...
-
If necessary, create a new project named TryThis12 Project, and save it in the Cpp8\Chap09 folder. Code the IPO charts shown in Figure 9-37. Enter your C++ instructions into a source file named...
-
Rewrite the code from Pencil and Paper Exercise 2 to display the array, column by column.
-
Fill in the Blank. In the finite element method, \(a(n)\) ___________ solution is assumed within each element.
-
The stiffness matrix of a bar element is given by a. \(\frac{E A}{l}\left[\begin{array}{ll}1 & 1 \\ 1 & 1\end{array} ight]\) b. \(\frac{E A}{l}\left[\begin{array}{rr}1 & -1 \\ -1 & 1\end{array}...
-
What is the basis for the derivation of transformation matrices?
Study smarter with the SolutionInn App