1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
sleet_krkn [62]
3 years ago
3

Complete the do-while loop to output every number from 0 to countlimit using printval. assume the user will only input a positiv

e number. for example, if countlimit is 5 the expected output will be 0 1 2 3 4 5

Mathematics
2 answers:
Anastasy [175]3 years ago
7 0

Answer:

while ( printVal <= countLimit );

Step-by-step explanation:

Rasek [7]3 years ago
6 0
Hi, here's a do-while loop using C++ programming language. 

int countlimit; //input from user
int printval =0; //initial value of printval


cout<<"Enter a positive number:"; //suppose user inputs 5
cin>>countlimit; //value 5 will be stored inside variable countlimit
do{ //start of do-while loop
cout<<printval; //print initial value
printval++; // increment printval 

}while(printval>=countlimit); //if condition is true, loops back to beginning of do

Loops ends and stops printing if countlimit (of 5, in this example) is reached. 


You might be interested in
An amusment park sells 9 tickets for $12 and 12 tickets for $15 . Is this fair explain
Andru [333]
Yes because you are paying .75 for each ticket with the 9/$12 deal, and .80 for each ticket with the 12/$15 deal
5 0
4 years ago
What is the constant of proportionality in the equation y = 2.5x?
strojnjashka [21]

Answer:

0.4y

Step-by-step explanation:

5 0
3 years ago
What is the slope and y-intercept of this line?
zysi [14]
The answer is C: slope=-2 and y intercept =8
6 0
3 years ago
Read 2 more answers
A right triangle has two shorter sides that differ in length by 7cm. The length of the
Naily [24]

Answer:

a = 5

b = 12

c = 13

Step-by-step explanation:

a^2+b^2=c^2

b-a=7(b=a+7)

c=a+8

Then, substitute

a^2+((a+7)*(a+7))=c^2

a^2+a^2+7a+7a+49=c^2

2a^2+14a+49=c^2

Because c = a+8

2a^2+14a+49=(a+8)(a+8)

2a^2+14a+49=a^2+16a+64

a^2-2a=15

a^2-2a-15=0

(a-5)(a+3)=0

a = 5,-3

a = 5(a side cannot be negative)

Plug in a=5 to the other equations to get

a = 5, b = 12, c = 13

Hope it helps <3

4 0
3 years ago
Read 2 more answers
How does the graph of f(x)=3|x+2|+4 relate to its parent function
Mariana [72]
If parent functin is f(x)=|x|
it is moved to the left 2 units
vertically streched by a factor of 3
and moved up by 4 units in that order

because
to move a function to left c units, add c to every x
to vertically strech function by factor of c, multiply whole function by c
to move funciotn up c units, add c to whole function


so it is 2 to the left, verteically streched by a factor of 3 then moved up 4 units
5 0
4 years ago
Read 2 more answers
Other questions:
  • A local grocery store sells a variety of bagels fresh every morning. The mean weight of these bagels is 3 oz with a standard dev
    13·1 answer
  • Please help me I really don't understand
    11·1 answer
  • A ball is dropped from a height of 12 feet and returns to a height that is one-
    9·2 answers
  • Need to simplify (x^2y)^4
    13·1 answer
  • For which intervals is the function negative?
    10·1 answer
  • Consider the function m(x) = x^4 − 16 = 0. Are these zeros of the function? Select Yes or No for A‐C.
    10·1 answer
  • Evaluate when x = 4 and <br> y = 8<br><br> x² + y
    7·2 answers
  • What is the simplified form of the inequality?
    14·1 answer
  • Easy answer!! Simplify
    12·2 answers
  • What leads many observers to assume a linear progression?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!