what is the output of the following program #include using namespace std; int main () { int
Fantastic news! We've Found the answer you've been seeking!
Question:
what is the output of the following program
Transcribed Image Text:
#include <iostream> using namespace std; int main () { int a=32; do {cout<<a; a++; if (a<35) break; } while (1); } #include <iostream> using namespace std; int main () { int a=32; do {cout<<a; a++; if (a<35) break; } while (1); }
Expert Answer:
Answer rating: 100% (QA)
The provided image contains C code which uses a dowhile loop The relevant portions of the code are e... View the full answer
Related Book For
Microsoft Visual C# An Introduction to Object-Oriented Programming
ISBN: 978-1337102100
7th edition
Authors: Joyce Farrell
Posted Date:
Students also viewed these programming questions
-
Correct the errors in the lines of code shown in Figure 4-34. (The code contains eight errors.)
-
The shareholders equity section of Bridgeport Corporation as at December 31, 2017, follows: 6% cumulative preferred shares, 100,000 shares authorized, 85,000 shares outstanding $4,540,000 Common...
-
Steve and Linda Hom live in Bartlesville, Oklahoma. Two years ago, they visited Thailand. Linda, a professional chef, was impressed with the cooking methods and the spices used in the Thai food....
-
Weller, Inc., sold 1,000,000 shares of $25 par value common stock at $32. It subsequently repurchased 100,000 of those shares at $50 per share and then sold 70,000 of those shares at $55. Calculate...
-
The following is an Equipment account and its associated Accumulated Depreciation account: Additional data: 1. Machine A was sold at a gain of $900 2. Machine B was sold for its scrap value of $200...
-
Banks and credit cards often base their interest on the average daily balance of an account, which is the average of the balance from each day of the period. The account balance of Jada's checking...
-
A trust officer at Pond Island Bank needs to determine what percentage of the banks investible funds to place in each of the following investments. The column labeled Yield represents each...
-
Jade owns the following portfolio of securities. What is the beta for the portfolio? Company Beta Percent of Portfolio Exxon-Mobil .95 40% Natarsha Industries 1.20 35% McGowan Restaurants 1.35 25%...
-
Given two arrays each of length n, arr1, and arr2, in one operation, any two elements of an array can be swapped. This can occur any number of times. Find the maximum possible sum of i*(arr2[1]-...
-
Discuss the steps to take when the Trial Balance does not (balance). What should you do to find the error? (HINT - take the easiest, fastest course first)
-
How does the concept of inherently safer design (ISD) integrate with hazard analysis to promote safety at the earliest stages of process design? Provide examples where ISD principles have...
-
Please help describe one intervention that used a health behavior theory or model, that was effective in modifying the health behavior of high risk sexual behavior?
-
Explain the reasoning behind the creation of copyright law and what its impacts are. such as: to benefit society, to protect an author's creative work, economic reasons, and/or incentives. outside...
-
Analyze the role of probabilistic risk assessment (PRA) in hazard analysis for nuclear power plants and other high-consequence industries. How does PRA integrate probabilistic modeling techniques to...
-
Why should a behavioral intervention plan (BIP), (also called behavioral change plan or behavioral support plan) be based on the results of a functional behavior assessment (FBA)? Explain.
-
Open Space Furniture began June with merchandise inventory of 4 5 sofas that cost a total of 7 5 0 each 3 0 sofas @ 1 . 1 5 0 each 5 0 sofas @ 1 , 2 0 0 each 1 8 Purchase 2 7 Sale Prepare a perpetual...
-
Given the table below, about how much force does the rocket engine exert on the 4.0 kg payload? Distance traveled with rocket engine firing (m) Payload final velocity (m/s) 500 320 490 310 1020 450...
-
In this exercise, you complete a program that uses the Square class shown in Figure 15-6 in the chapter. Follow the instructions for starting C++ and viewing the Introductory13.cpp file, which is...
-
Which of the following updates the total accumulator variable by the value in the sales variable? a. total = total + sales; b. total = sales + total; c. total += sales; d. All of the above
-
Write a C++ statement that replaces the first character in a string variable named code with the letter B.
-
1. Brockwell left his boat to be repaired at Lake Gaston Sales. The boat contained electronic equipment and other personal items. Brockwell signed a form stating that Lake Gaston had no...
-
2. Guyan Machinery, a West Virginia manufacturing corporation, hired Albert Voorhees as a salesman and required him to sign a contract stating that if he left Guyan he would not work for a competing...
-
4. The McAllisters had several serious problems with their house, including leaks in the ceiling, a buckling wall, and dampness throughout. They repaired the buckling wall by installing I-beams to...
Study smarter with the SolutionInn App