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

20+30×0+1= what is the answer please?
Why is angle of view important? What are some of the ways that you can do this?
What annual simple interest rate will increase Jacob Davidson’s initial investment of $5,000 to $6,000 in two years? multiple choice A)10% B)5% C)4% D)6%
Sara is training 50 miles bicycle race. She rides 9 miles everyweek and 15 miles every weekend. About how many miles she ride each day
PLEASE HELP NEED IN 5 MINUTES! What is the central idea of this paragraph? Another name for the plague in the 1500s was “the pestilence.” In 1565 almost 20 per
In oedipus the king, how is jocasta related to creon?
The rivers of the Lowlands were important to the Maya for the transportation of people and materials. A. True B. False
y=2/3x 15 in standard form?
What is the correct electron configuration for oxygen?
The fighting of the revolutionary war began in the city of _________ in the year ________.