1

What is the output of the following C++ code? int count = 1; int num =...

Question

What is the output of the following C++ code? int count = 1; int num =...

What is the output of the following C++ code? int count = 1; int num = 25; while (count < 25) { num--; count++; } cout << cou

In this while loop statement, while (counter < 10), where counter is an int variable. Which statement below is an equivalent

A for loop performs repetition, and an if-else statement performs selection. True False
What is the output of the following C++ code? int count = 1; int num = 25; while (count < 25) { num--; count++; } cout << count « " " « num << endl i 25 1 0 24 1 0 25 0 0 24 0
In this while loop statement, while (counter < 10), where counter is an int variable. Which statement below is an equivalent way to write this while statement? while (10 < counter) while (9 > counter) while (counter <= 9) while (counter <= 10)
A for loop performs repetition, and an if-else statement performs selection. True False

Answers

Answers:::

1)While (count<10) is equivalent to while(count<=9)
2) for loop is used for repetition.. if else is used for select pertucular operation based on condition.
3) after execution of above code.. count ends with 25 and num ends with 1.


Similar Solved Questions

1 answers
When i turn it in i can only do handwritten. but if you can explain your...
when i turn it in i can only do handwritten. but if you can explain your results from excel and how to calculate everything thats fine. its due tomorrow please help!! 7. (1 mark) Complete the table below (where k is the true rate constant): Temperature 1/T In(k) (K) (K*') (units = ?) (unitless) ...
1 answers
The following condensed income statements of the Jackson Holding Company are presented for the two years...
The following condensed income statements of the Jackson Holding Company are presented for the two years ended December 31, 2018 and 2017: 4 2018 2017 Sales Cost of Goods Sold Gross Profit Operating Expense Operating Income Gain on sale of division $15,000,000 $9,600,000 9.200,000 6,000,000 5,800,00...
1 answers
4 Paints Question 3 The Lady Mustangs played 35 games and lost only 2 of them....
4 Paints Question 3 The Lady Mustangs played 35 games and lost only 2 of them. What percent of the games did they lose. Round your answer to the nearest rent of a percent. Enter only the value without the percent sign, Add your ansvet...
1 answers
Revievw Part A Two m 56 g point charges on 1.0-m-long threads repel each other after...
Revievw Part A Two m 56 g point charges on 1.0-m-long threads repel each other after being charged to q 120 nC, as shown in the figure What is the angle 7 You can asoume that 6 is a smal angle Express your answer to two significant figures and include the appropriate units Figure 1) Figure 1of1 e Va...
1 answers
A newly issued bond pays its coupons once a year. Its coupon rate is 4.9%, its...
A newly issued bond pays its coupons once a year. Its coupon rate is 4.9%, its maturity is 10 years, and its yield to maturity is 7.9%. a. Find the holding-period return for a one-year investment period if the bond is selling at a yield to maturity of 6.9% by the end of the year. (Do not round inte...
1 answers
You are given the following information Durable good consumption 462 Residential investment 526 987 Imports Government...
You are given the following information Durable good consumption 462 Residential investment 526 987 Imports Government expenditure Receipts of factor income from abroad 1259 45 Personal income 7863 Nonresidential investment 66 Nondurable goods 893 1056 Exports Services 7638 Depreciation 125 Change i...
1 answers
2. Lastly, use the table of thermodynamic functions to compute the AHo and ASo for the...
2. Lastly, use the table of thermodynamic functions to compute the AHo and ASo for the reactions in #1. Then using AH° and AS° and your knowledge of the second law, compute which reactions are spontaneous under standard conditions. You must show all your calcualtions. (7pts) Spontaneous ASo ...
1 answers
A student ran the following reaction in the laboratory at 225 K: 2NOBr(g) 2 2NO(g) +...
A student ran the following reaction in the laboratory at 225 K: 2NOBr(g) 2 2NO(g) + Brz(g) When she introduced 0.198 moles of NOBr(g) into a 1.00 liter container, she found the equilibrium concentration of Br2(g) to be 1.89x10-2 M. Calculate the equilibrium constant, Kc, she obtained for this react...
1 answers
JAVA None of the others c = (CollegeStudent) s1; c = (CollegeStudent) s3; c = (CollegeStudent)...
JAVA None of the others c = (CollegeStudent) s1; c = (CollegeStudent) s3; c = (CollegeStudent) p2; c = (CollegeStudent) s2; c = (CollegeStudent) p5; is it s3? Your application has a hierarchy of Java classes, with class Person at the top, class Student extending Person, class CollegeStudent extendin...
1 answers
+-/1 points SerCP11 22.A.P.049 My Notes 3. Refraction causes objects submerged in water to appear less...
+-/1 points SerCP11 22.A.P.049 My Notes 3. Refraction causes objects submerged in water to appear less deep than they actually are. The fish in the figure below has an apparent depth of 1.11 m. Calculate its actual depth (in m). HINT Apparent Depth Actual Depth i 2.04 m Submit Answer...
1 answers
What do you see as the similarities and differences in the registration transaction for government and...
What do you see as the similarities and differences in the registration transaction for government and for-profit companies? Give two examples of each in your discussion....
1 answers
What are some of the considerations this hospital must make when deciding on acquiring an EHR?
What are some of the considerations this hospital must make when deciding on acquiring an EHR?...
1 answers
1. XYZ Company produces and sells a single product. The company's income statement for the most...
1. XYZ Company produces and sells a single product. The company's income statement for the most recent month is given below: Per unit 40 Sales (6,000 units) Variable Expenses Contribution Margin Fixed Expenses Operating Income Total 240,000 144,000 96,000 72,000 24,000 24 16 a. Compute the compa...

-- 0.043726--