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
Softa [21]
3 years ago
15

Given an int variable i that has already been declared, write a for loop that prints the integers 0 through 39, separated by spa

ces. Use no variables other than i.
Mathematics
1 answer:
s2008m [1.1K]3 years ago
5 0

Answer:

The first thing is to define the programming language in which the program will be made, I select C ++ because it seems to me one of the most common and easiest to handle.

We are asked to create a loop of numbers between 0 and 39. In this case it is best to create a counter (i), between starting at 1 and ending at 9, this is done using the "for" command and then to print on screen the command "cout" is used, and lastly "\ n" is used to create the space they ask for.

Therefore the program would look like this, remember that "{}" is to open and close the program.

for (i = 0; i <= 39; i ++) {

    cout << i << '\ n';

}

You might be interested in
The perimeter of a rectangular pool is 72 meters. If the length of the pool is twice its breadth. Its length is_________.
lana66690 [7]

Answer:

Length = 18 meters

Step-by-step explanation:

Let the length of the rectangular pool = l meters

And breadth of the pool = w meters

Perimeter of the rectangular pool = 2(l + 2w)

Since, perimeter of the rectangular pool is 72 meters.

2(l + 2w) = 72

l + 2w = 36 --------(1)

If length of the pool is twice of its breadth,

l = 2w

w = \frac{l}{2} -------(2)

By substituting the value of 'w' from equation (2) to equation (1),

l+2\times{\frac{l}{2}}=36

2l = 36

l = 18 meters

8 0
3 years ago
Brody works at the ticket booth at the movie theater. He sold 25 adult tickets and several child tickets during his first hour a
Angelina_Jolie [31]

Answer:

10

Step-by-step explanation:

25 x 12 = 300$ worth of adult tickets sold

360 - 300 = 60$ worth of child tickets sold

60/6 = 10 tickets

3 0
3 years ago
Please help with this equation
Varvara68 [4.7K]
X=12 is the answer, i have done this question before, hope i helped.

5 0
3 years ago
A taxi cab charges a flat rate of $3 in addition to $1.80 per mile, m, traveled. Jennifer has no more than $25 to spend on a rid
prohojiy [21]

Answer:

m is less than or equal to 12.2

Step-by-step explanation:

$3+$1.80(m) is less than or equal to $25.00

$1.80*12.2 miles= $21.96

$21.96+$3=$24.96

7 0
4 years ago
animation for a computer-drawn cartoon requires about 20 frames per second. how many frames would need to be drawn for 30 second
creativ13 [48]
600 frames. 30 by 20 is 600
4 0
3 years ago
Read 2 more answers
Other questions:
  • Yasuaki mows lawns for $6.75 an hour. If he spends 7 hours
    13·1 answer
  • Corrine is organizing a bus trip to an amusement park. She has 245 people signed up to go on the trip. The coach buses can seat
    7·2 answers
  • To determine the average number of hours that students study, members of the math club are polled. Identify the sample as biased
    13·1 answer
  • 3x-2y = 24<br> What is the slope
    8·1 answer
  • Liam is setting up folding chairs for a meeting. if he arrange the chairs in seven rows of the same length he has five chairs le
    13·1 answer
  • What is -4x+7(-4x-14)=190
    10·1 answer
  • Which value of x is a solution of 8&gt; (x-6)-2
    13·2 answers
  • How is an exponential growth function of the form ​f(x)=a(1+r)^x related to an exponential function of the form ​f(x)=a*b^x?
    9·1 answer
  • Complete the equation for the line
    15·1 answer
  • What is the area of this shape?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!