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
Anit [1.1K]
2 years ago
15

Write a for loop that displays the following numbers exactly like this (you must use a loop):

Computers and Technology
2 answers:
lbvjy [14]2 years ago
6 0

Answer:

I will use c++ for this...

#include <iostream>

using namespace std;

int main() {

 int num = 0;

 int curr = 0;

 for (int i = 0; i<5; i++) {

   num = 3 + curr;

   cout << num << " ";

   curr += 4;

 }

}

Olenka [21]2 years ago
5 0

Answer:

while (true)

{

   print(3);

  print(7);

 print(11);

print(15);

print(19)

break;

}

Explanation:

You might be interested in
What should you do when an error message pops up on the screen?
gladu [14]
D.) Write down the error message and research the cause based on the message.
5 0
3 years ago
Read 2 more answers
Choose the output result of the below code.
SIZIF [17.4K]

Answer:

B

Explanation:

When you initialize an instance of FunEvent(tags, year) and assign it to bc. The instance variables in this case are: self.tags = ["g", "ml"] and self.year = 2022. But then you alter tags, which will also change self.tags, since self.tags is a reference to the list you passed in as an argument. This is not the case when you do year=2023 because, first of all, integers are not mutable, and also because even if somehow integers were mutable, you're not changing the object in-place, you're simply changing the where the "variable" is pointing to. So for example if you did tags = ["g", "ml", "bc"] instead of tags.append("bc"), it would also not change the value of the instance variable "tags", because you wouldn't be changing the object in-place. So when you print(bc), the instance variables will be ["g", "ml", "bc"] and 2022. When you try to print an object, it call try to convert it into a string using the __str__  magic method. In this case it will return a string formatted as "Event(tags={self.tags}, year={self.year}) which will output "Event(tags=['g', 'ml', 'bc'], year=2022)" So the correct answer is B

4 0
2 years ago
All the network nodes are connected to each other
Shalnov [3]
It’s a mesh topology
7 0
3 years ago
Yo need help can someone plz help
Natasha_Volkova [10]
Boolean search would be the answer
5 0
3 years ago
Question 1 of 1
evablogger [386]

Answer:

Ladders are not moved, shifted, or extended while a worker is on them.

Explanation:

It's the most logical answer out of the others.

3 0
2 years ago
Other questions:
  • If you're found to be at fault in _____, your driver license will be canceled within 90 days unless you complete a 12-hour Advan
    10·2 answers
  • What is the mass of the light bulb? a. 425.6 g b. 204.6 g c. 240.56 g d. 245.6 g
    6·2 answers
  • A printer is displaying no images on its LED panel. What can a technician do to troubleshoot the situation? Choose two answers.
    6·1 answer
  • You might have trouble interpreting a message if:
    15·1 answer
  • Look at the following program and answer the question that follows it. 1 // This program displays my gross wages. 2 // I worked
    8·1 answer
  • When you reference a cell or range in a different worksheet, the ____ separates the sheet reference from the cell reference.
    10·1 answer
  • Please help me
    7·2 answers
  • What year was the first release of a linux operating system?
    7·1 answer
  • Discuss any 4 differences between first and second generation of programming languages <br>​
    11·1 answer
  • Within a master slide template, you can create a custom slide layout. Place the steps to complete this task in the correct order
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!