#include <conio.h>
#include <iostream>
#include <windows.h>
#include "..\pause.h"
using namespace std;

void setcolor(unsigned short color,unsigned short bkg = 0)
{
  HANDLE hcon = GetStdHandle(STD_OUTPUT_HANDLE);
  SetConsoleTextAttribute(hcon,(WORD) ((bkg << 4) | color));
}


void main(void)
{
  for (int i = 0;i <= 15;i++) {
    setcolor(7,0);
    cout << i << ": ";
    for (int j = 0;j <= 15;j++) {
      setcolor(j,i);
      cout << j;
    }
    cout << endl;
  }
  setcolor(7);
  pause();
}
