#include void printTable (int x,int y); void printStars (int x); void main (void) { printTable (4,6); cin.get(); // freezes the output screen to see the picture printTable (11,12); cin.get(); printStars (10); cin.get(); printStars (25); cin.get(); } void printTable (int x,int y) { for (int a = 1;a <= x;a++) { cout << "\n"; for (int b = 1;b <= y;b++) { if (a*b < 10) cout << " "; else if (a*b < 100) cout << " "; else cout << " "; cout << a*b; } } cout << "\n\n"; } void printStars (int x) { for (int a = 1;a <= x;a++) { cout << "\n"; for (int b = 0;b < x-a;b++) cout << " "; for (int c = 0;c < a*2-1;c++) cout << "*"; } }