MASTER PATTERNS
PROGRAMS #include<iostream> using namespace std; int square(); int rectangle(); int triangle(); int diamond(); char choice(); int main() { int a; cout<<"Enter your choice\n1 for Square\n2 for Rectangle\n3 for triangle\n4 for diamond"; cin>>a; if(a==1) square(); else if(a==2) rectangle(); else if(a==3) triangle(); else if(a==4) diamond(); } int square() { int size; cout << "\n\n Print a pattern like square with # character:\n"; cout << "--------------------------------------------------\n"; cout << " Input the number of characters for a side: "; cin >> size; for (int row = 1; row <= size; ++row) { for (int col = 1; col <= size; ++col) { cout << "* "; ...