c++
1) Write a program that displays the following pattern on the screen: ******* ***** *** * *** ***** ****** Solution: #include<iostream> using namespace std; int main() { cout<<"*******"<<endl; cout<<" *****"<<endl; cout<<" ***"<<endl; cout<<" *"<<endl; cout<<" ***"<<endl; cout<<" *****"<<endl; cout<<"********"<<endl; return 0; } 2) Write a program that displays the following pattern on the screen: 1 121 12321 1234321 123454321 1234321 12321 121 1 3) Write a program that prints the numbers 1 to 5 on the same line with each pair of adjacent numbers separated by one space. Write the program using the following methods: a) Using one output statement with one stream insertion operator. b) Using one output statement with four stream insertion operators. c) Using four output statements. 4) What does the following code print? cout << "*\n**\n***\n****\n*****\n";