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
NikAS [45]
2 years ago
10

Write a for loop that prints in ascending order all the positive integers less than 200

Business
1 answer:
ExtremeBDS [4]2 years ago
5 0

The correct answer for the for loop is:

for (int i=1; i<200; i++){

if ((i%2)==0 && (i%3)==0){

cout << i << " ";

}

}

Python offers three options for running the loops. For iterating repeatedly through a sequence, use a for loop (that is either a list, a tuple, a dictionary, a set, or a string). This functions more like an iterator method seen in other object-oriented programming languages and is less like the for keyword found in other programming languages. The for loop allows us to run a series of instructions once for each element of a list, tuple, set, etc. There is no need to set an indexing variable before using the for loop.

Write a for loop that prints, in ascending order, all the positive integers less than 200 that are divisible by both 2 and 3, separated by spaces.

Learn more about loops here:

brainly.com/question/25955539

#SPJ4

You might be interested in
Can someone please explain what grassroots are in easy terms? I have tried to find a definition that I understand but I can't fi
liberstina [14]
It’s marketing started from the ground up. You target a small group of people instead of launching to many people and hope that the smaller group will spread it to other people. Hope this helps.
3 0
3 years ago
Chuck offers $240,000 for a house. The seller turns down the offer but says she will sell the house for $260,000. However, Chuck
qaws [65]

Answer:

Chuck must be less than $260,000

Explanation:

The economic decision rule is: Do it if that marginal benefit exceeds the marginal cost and Since Chuck was unwilling to purchase the house at $260,000, we can deduce that the marginal benefit of purchasing the house must be less than $260,000 due to the fact that the seller turns down the offer but says she will sell the house for $260,000.

6 0
3 years ago
The phase of the Technology Product Development Cycle that describes key technology that has been integrated into many products
Serga [27]
I believe the correct answer from the choices listed above is option B. <span>The phase of the Technology Product Development Cycle that describes key technology that has been integrated into many products is the mature phase. Hope this answers the question.</span>
4 0
3 years ago
Read 2 more answers
Government regulations on credit aim to
stepan [7]

Answer:

A. ensure lenders are rapaid.

6 0
3 years ago
Read 2 more answers
Pollution and raw material shortages constitute immediate threats to some firms buy are often opportunities for other firms. The
castortr0y [4]

Answer:

Yes

Explanation:

  1. Competitors will have to find out other options on recycling materials what opens opportunities for the recycling and and other green industry. like recycling Aluminium is cheaper than producing it from Bauxite, for example.
  2. Shortage of raw material and pollution costs will change another macro environment factor as legal and political forces. What definitely changes the strategy for these companies. This can also be challenging since it may add other unplanned costs for each company.
7 0
3 years ago
Other questions:
  • How do the choices we make both producers and consumers help us with scarcity?
    7·2 answers
  • During 2018, Cary and Bill incurred acquisition debt on their residence of $1,300,000. They also borrowed $200,000 on a home equ
    15·1 answer
  • Blossom Company purchases a patent for $158,000 on January 2, 2017. Its estimated useful life is 8 years. (a) Compute amortizati
    7·1 answer
  • Which of the following statements describes GAAP?
    5·2 answers
  • When fast food restaurant, tommy's tacos, had poor sales in central city, marketing managers closed one outlet on the east side
    15·1 answer
  • A function that indicates the maximum output per unit of time that a firm can​ produce, for every combination of inputs with a g
    15·1 answer
  • Which of the following is most correct:Question 8 options:A firm with financial leverage has a larger equity multiplier than an
    10·1 answer
  • Omega Enterprises budgeted the following sales in units: January 40,000 February 30,000 March 50,000 Omega's policy is to have 3
    5·1 answer
  • Credit card companies fall into three groups: those who offer credit scores toeveryone, those who offer tocardholders,and thosew
    10·1 answer
  • rose ordered a package of macaroons from an out of state bakery. she received the cookies the following week. what type of e-com
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!