492,616 views
44 votes
44 votes
Write a program that produces the following output:CCCCCCCCC CC CC CC CC CCCCCCCCC Note: The letter C in the output must be uppercas

User Actuallymicah
by
2.8k points

1 Answer

21 votes
21 votes

Answer:

CCCCCCCCC ++ ++ CC ++ ++ CC ++++++++++++++ +++++++++++++++ CC ++++++++++++++ +++++++++++++++ CC ++ ++ CCCCCCCCC ++ ++

Note: The letter C in the output must be uppercase.

#include <iostream>

using namespace std;

int main()

{

cout<<"CCCCCCCCC ++ ++ CC ++ ++ CC ++++++++++++++ +++++++++++++++ CC +++++++++++++\\";

cout<<"+++++++++++++++ CC ++ ++ CCCCCCCCC ++ ++";

return 0;

}

User Stawros
by
3.0k points