aashikmhdaashik1245 aashikmhdaashik1245
  • 12-08-2022
  • Computers and Technology
contestada

2
2 4
2 4 6
2 4 6 8
2 4 6 8 10
2 4 6 8 10 12 write the c programming input

Respuesta :

belali
belali belali
  • 12-08-2022

Hello, algorithm in C++ language of this problem has given below. If any question(s) then feel free to ask in comments!

Good luck!

#include <bits/stdc++.h>

int main(int argc, char* argv[]) {

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

       int x=2;

       while(x!=2*i) {

           std::cout << x << " ";

           x+=2;

       }

       std::cout << std::endl;

   }

   return 0;

}

Answer Link

Otras preguntas

why might a person eat fewer servings than recommended by the MyPyramid and still gain an unhealthy amount of weight?​
PLEASE HELP!!! Suppose the function f(x)=7x+2 represents the cost to pay a babysitter for x hours. Gina has $10.00. How much more money does Gina need if she wa
for an new relationship to stay nontoxic what is needed?
what is the equation of the line that passes through the points (-2, 1) and ( 1, 10)? A. 3x - y = -7 B. 3x - y = -5C. 3x - y = 5D. x + 3y = -5​
which statement best explains the law of supply?
what are some of the advantages and disadvantages of choosing a federally insured account.? help​
Dna strands serve as which of the following during dna synthesis
Which error must be corrected to follow MLA guidelines?
Can Someone Help Me With This:​
In the years prior to word war ll, japan underwent rearmament amd a policy of expansion, setting its sights on