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

Which event marked the beginning of the Middle Ages
Read the sentence. Because my bike tire was low, it came as no surprise that it went flat just as it began to rain. Which is the best way to correct the pronoun
where do you find tundra? A. At high elevations B. In Antarctica C. North of the Arctic Circle D. North of the Arctic Circle and at high elevations
What side should you write on a loose leaf paper
Why did friars and Jesuits go to the Spanish colines in the Americas? a.gold and glory b.convert people to Catholicism c. serve native people who had become ch
Would you like to live under the authority of this form of government
How did the Constitution overcome the weaknesses of the Articles of Confederation?
what number is bigger 5.8 tenths or 0.58
what is the relationship between adaptation and natural selection
76255 divided by 309