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

Write an algebraic expression for two fifths the cube of a number
How did the Declaration of Independence happen
Simplify the expression. 11c + 3(-5c + 4d)
What is the nth term in the sequence: 4, 7, 12, 19, 28 Please show working out
Simplify the expression. Write the answer without using parentheses or negative exponents.((x^4 y^2)^5)/((x^2 y)^2)
What can you infer about Lennie's childhood and family life in the book of mice and men?
Which shape is always a parallelogram (Pentagon,trapezoid,rhombus,or triangle
How would I answer this equation 5y - 2y = 3y + 2
The quantity “one mole” will not be equal to a. 22.4 L of H₂(g) at STP b. 6.02 x 10²³ carbon atoms c. 64 grams of SO₂(g) d. 36 grams of H₂O e. 207 grams of Pb
Simplify the expression. Write the answer without using parentheses or negative exponents.((x^4 y^2)^5)/((x^2 y)^2)