What I am trying to do is create a program which will look similar to this:
Enter character: &
&&&&&
&&&&&
&&&&&
here is what I have so far and please help me as much as you can.
Am I going along the right path at least? also, this is a somehwat example my professor gave me, am I supposed to be using the i's and j's? what do they mean?Code:void pattern () { char ch; cout << "enter character"; cin >> ch; for (int i=1; i>=5; ++i) ch; for (int j=5; j>=1; --j) cout << ch; cout << endl; }