answersLogoWhite

0


Best Answer

#include <stdio.h>

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

printf ("1 1 2 1 1 2 1 3 1 2 1 1 2 1 3 1 2 1 4 1 2 1 3 1 2 1\n");

}

User Avatar

Wiki User

12y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

8y ago

a program to generate the sequence 1 4 9 16 25 is:

for (int i=1; i<=5; ++i) std::cout << i*i << ' ';

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

1, 12, 123, 1234, 12345, 123456, 1234567, 12345678, 123456789.

It keeps adding, but I'm not sure about the last 1 2 3 4 5 6 7.

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

It is not a program, you seem to have misunderstood something.

This answer is:
User Avatar

User Avatar

Wiki User

9y ago

for (int i=1; i<=5; ++i) std::cout << i*i << ' ';

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the code for the following program 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15?
Write your answer...
Submit
Still have questions?
magnify glass
imp