Pure Programmer
Blue Matrix


Cluster Map

Project: Multiplication Table with Format

Write a program to print a multiplication table for 16s. Use only strings and integer hexadecimal literals in your solution. Use the format() function to compute and format in the results of the table.

Output
$ g++ -std=c++17 MultiplicationTable3.cpp -o MultiplicationTable3 -lfmt $ ./MultiplicationTable3 0 × 16 = 0 1 × 16 = 16 2 × 16 = 32 3 × 16 = 48 4 × 16 = 64 5 × 16 = 80 6 × 16 = 96 7 × 16 = 112 8 × 16 = 128 9 × 16 = 144 10 × 16 = 160 11 × 16 = 176 12 × 16 = 192 13 × 16 = 208 14 × 16 = 224 15 × 16 = 240 16 × 16 = 256

Solution