/**
 * Prints multiplication tables
 */
function main() {

  var lines = [];

  for (var a = 1; a <= 9; a++) {
    for (var b = 1; b <= 9; b++) {
      lines.push(template(a, b));
    }
  }

  for (var i = 0; i < lines.length; i++) {
    console.log(lines[i]);
  }

}

function template(a, b) {
  return a + 'x' + b + '=' + (a * b);
}

main();