Instructions
Write a program that produces the following output:
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 +++++++++++++\n";
cout<<"+++++++++++++++ CC ++ ++ CCCCCCCCC ++ ++";
return 0;
}
Code :
#include <iostream>
// standard library for input and output
using namespace std;
int main() // main function with return type integer
{
cout<<"CCCCCCCCC ++ ++ CC ++ ++ CC ++++++++++++++
+++++++++++++++ CC ++++++++++++++\n";
cout<<"+++++++++++++++ CC ++ ++ CCCCCCCCC ++ ++";
return 0;//return 0 to the function
}
Output :
Code :
#include <iostream> //standard library for input and output
using namespace std;
int main() //main
function
{
cout<<"CCCCCCCCC ++ ++\nCC ++ ++\n"; //print the
statement
cout<<"CC ++++++++++++++ +++++++++++++++\n";//print the
statement
cout<<"CC ++++++++++++++ +++++++++++++++\n";//print the
statement
cout<<"CC ++ ++\nCCCCCCCCC ++ ++"; //print the
statement
return 0; //return the 0 to function main;
}
Output :
I answered both questions ,if you need any modifications or add anything or make it in different way please leave a comment....
Otherwise please give positive rating if it useful to you.....
Thank you........
Get Answers For Free
Most questions answered within 1 hours.