486,333 views
25 votes
25 votes
Write a program that produces the following output: CCCCCCCCC ++ ++ CC ++ ++ CC ++++++++++++++ +++++++++++++++ CC ++++++++++++++ +++++++++++++++ CC ++ ++ CCCCCCCCC ++ ++ Note: The letter C in the output must be uppercase.

User LarssonK
by
3.2k points

1 Answer

15 votes
15 votes

Answer:

#include <iostream>

int main() {

std::cout << "CCCCCCCCC ++ ++ CC ++ ++ CC ++++++++++++++ +++++++++++++++ CC ++++++++++++++ +++++++++++++++ CC ++ ++ CCCCCCCCC ++ ++";

}

Explanation: I mean... The question is lacking context, I'm almost certain of it. But this C++ program will do exactly as you requested. It will print out that exact output to the console as written.

If this isn't what you need, you can always respond to my answer, but this does what you want it to.

User Marco Burrometo
by
3.1k points