jamomoja88 jamomoja88
  • 02-01-2022
  • Computers and Technology
contestada

What is the C++ program to display 3 6 9 12 15​

Respuesta :

YBS20
YBS20 YBS20
  • 02-01-2022

Answer:

#include <iostream>

using namespace std;

int main()

{

   

   int n = 15;

   

   for(int i=3; i<=n; i=i+3){

       cout<<i;

       cout<<" ";

   }

   return 0;

}

Explanation:

Used for loop to calculate number and display it. for start with 3(int i=3), increment by 3(i=i+3) and stop when 15 came (i<=n where n is 15).

Answer Link

Otras preguntas

How do you do mole conversions
Find the common ratio geometric sequence please
Which is a legal limit on the direct method of lobbying members of Congress?
You observe one pine tree. if the probability of not being a foxtail pine is equal to 0.06, what is the probability that this tree is a foxtail pine? (calculate
what philospopher mocked established authority such as the church and the government
by definition, empirical is equal to
List four to five characteristics of academic English.
WILL GIVE BRAINLIEST!!! 12 POINTS!!!! The table below shows the quiz grades for two students. Drew 90 81 86 79 97 84 92 Nancy 96 68 91 94 69 99 92 Which state
ANSWER ASAP PLEASE HURRY OMG PLEASE HURRY ANSWER FAST!!!!!!!!! Thoreau’s ideas had a profound effect on a man named Gandhi. Gandhi, was a leader in India who wo
The absolute pressure below the surface of a freshwater lake is 3.51 x 10^5 Pa. At what depth does this pressure occur? Assume that atmospheric pressure is 1.01