Sammy288
Sammy288 Sammy288
  • 15-06-2022
  • Computers and Technology
contestada

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

3 7 11 15 19

Hint: notice the pattern of the numbers

Respuesta :

philjackson11 philjackson11
  • 15-06-2022

Answer:

while (true)

{

   print(3);

  print(7);

 print(11);

print(15);

print(19)

break;

}

Explanation:

Answer Link
rdacoder
rdacoder rdacoder
  • 15-06-2022

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;

 }

}

Answer Link

Otras preguntas

Select ALL the measurments that are about 1 yard long Students desk Height of classroom width of classroom door height of building length of movie ticket
When the wealth is privately owned.
I need help with this​
Why was adding a new state to the United States problematic in the early 1800’s???
The graph of the exponential function f is shown on the grid below. What is the y-intercept of this exponential function?
Deion finds that the world's population is 7.048 billion and is increasing at a rate of 1.1% per year. Which function would Deion use to model the growing popul
PLEASE HELP!!!!! (PICTURE BELOW!!)
Why did human zoos attract such large audiences during the modern period?
I WILL GIVE YOU BRAINLIEST IF SOMEONE ANSWERS THIS QUESTION!!!!!
please hurry i'm timed!!!!!!!!!!!!!!!Please select the word from the list that best fits the definition A large estate owned by a knight or lord