A tu moja taka luźna propozycja:
#include <iostream>
#include <stdio.h>
using namespace std;
char ANSI_GREEN[10] = "\u001B[32m";
char ANSI_YELLOW[10] = "\u001B[33m";
char ANSI_RESET[9] = "\u001B[0m";
int main()
{
int LW = 10;
int LC = 10;
cout << "\n "; // << ANSI_GREEN;
for(int i=1; i<=LC; ++i)
{
printf("%s%-3i%s", ANSI_GREEN, i, ANSI_RESET);
}
cout << "\n"; // << ANSI_RESET;
for(int i=1; i<=LW; ++i)
{
printf("%s%2i %s", ANSI_YELLOW, i, ANSI_RESET);
for(int j=1; j<=LC; ++j)
{
printf("%-3i", i*j);
}
cout << "\n";
}
cout << endl;
return 0;
}