147k views
4 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.

1 Answer

7 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 Jxramos
by
4.4k points