/****************************************************************************** * This program prints a multiplication table for 12s. * * Copyright © 2020 Richard Lesh. All rights reserved. *****************************************************************************/ #undef NDEBUG #include #include #include #include std::locale utf8loc(std::locale(), new std::codecvt_utf8); using namespace std; int main(int argc, char **argv) { setlocale(LC_ALL, "en_US.UTF-8"); wcout.imbue(utf8loc); wcin.imbue(utf8loc); wcout << L"0 \u00D7 12 = 0" << endl; wcout << L"1 \u00D7 12 = 12" << endl; wcout << L"2 \u00D7 12 = 24" << endl; wcout << L"3 \u00D7 12 = 36" << endl; wcout << L"4 \u00D7 12 = 48" << endl; wcout << L"5 \u00D7 12 = 60" << endl; wcout << L"6 \u00D7 12 = 72" << endl; wcout << L"7 \u00D7 12 = 84" << endl; wcout << L"8 \u00D7 12 = 96" << endl; wcout << L"9 \u00D7 12 = 108" << endl; wcout << L"10 \u00D7 12 = 120" << endl; wcout << L"11 \u00D7 12 = 132" << endl; wcout << L"12 \u00D7 12 = 144" << endl; return 0; }