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

List 3 commercial uses of sponges.
List 3 commercial uses of sponges.
List 3 commercial uses of sponges.
Search results for "A shipment of 18 cars, some weighing 3,000 pounds, and the others weighing 5,000 pounds each. Together the shipment has a total weight of 30
Search results for "A shipment of 18 cars, some weighing 3,000 pounds, and the others weighing 5,000 pounds each. Together the shipment has a total weight of 30
Why does land heat up more faster than water?
What kind of particles make up compound
List 3 commercial uses of sponges.
How does 4/15=14/n? What does n equal?
C(squared)L(squared) + 100v(squared) = 100c(squared)I have to solve for L