Go: package main

import (
	"fmt"
	"strconv"
)

func main() {
	for _, leftValue := range MultiplicationTableNum(9) {
		for _, rightValue := range MultiplicationTableNum(9) {
			strLeftVal, strRightVal, strMulti := strconv.Itoa(leftValue), strconv.Itoa(rightValue), strconv.Itoa(Multiplication(leftValue, rightValue))
			fmt.Println(strLeftVal + "x" + strRightVal + "=" + strMulti)
		}
	}
}

func MultiplicationTableNum(num int) []int {
	multiNum := []int{}
	for i := 1; i <= num; i++ {
		multiNum = append(multiNum, i)
	}
	return multiNum
}

func Multiplication(x, y int) int {
	return x * y
}

C++: #include <iostream>
using namespace std;
int main(){
  cout<<1;
  cout<<'x';
  cout<<1;
  cout<<'=';
  cout<<1;
  cout<<endl;
  cout<<1;
  cout<<'x';
  cout<<2;
  cout<<'=';
  cout<<2;
  cout<<endl;
  cout<<1;
  cout<<'x';
  cout<<3;
  cout<<'=';
  cout<<3;
  cout<<endl;
  cout<<1;
  cout<<'x';
  cout<<4;
  cout<<'=';
  cout<<4;
  cout<<endl;
  cout<<1;
  cout<<'x';
  cout<<5;
  cout<<'=';
  cout<<5;
  cout<<endl;
  cout<<1;
  cout<<'x';
  cout<<6;
  cout<<'=';
  cout<<6;
  cout<<endl;
  cout<<1;
  cout<<'x';
  cout<<7;
  cout<<'=';
  cout<<7;
  cout<<endl;
  cout<<1;
  cout<<'x';
  cout<<8;
  cout<<'=';
  cout<<8;
  cout<<endl;
  cout<<1;
  cout<<'x';
  cout<<9;
  cout<<'=';
  cout<<9;
  cout<<endl;
  cout<<2;
  cout<<'x';
  cout<<1;
  cout<<'=';
  cout<<2;
  cout<<endl;
  cout<<2;
  cout<<'x';
  cout<<2;
  cout<<'=';
  cout<<4;
  cout<<endl;
  cout<<2;
  cout<<'x';
  cout<<3;
  cout<<'=';
  cout<<6;
  cout<<endl;
  cout<<2;
  cout<<'x';
  cout<<4;
  cout<<'=';
  cout<<8;
  cout<<endl;
  cout<<2;
  cout<<'x';
  cout<<5;
  cout<<'=';
  cout<<1;
  cout<<0;
  cout<<endl;
  cout<<2;
  cout<<'x';
  cout<<6;
  cout<<'=';
  cout<<1;
  cout<<2;
  cout<<endl;
  cout<<2;
  cout<<'x';
  cout<<7;
  cout<<'=';
  cout<<1;
  cout<<4;
  cout<<endl;
  cout<<2;
  cout<<'x';
  cout<<8;
  cout<<'=';
  cout<<1;
  cout<<6;
  cout<<endl;
  cout<<2;
  cout<<'x';
  cout<<9;
  cout<<'=';
  cout<<1;
  cout<<8;
  cout<<endl;
  cout<<3;
  cout<<'x';
  cout<<1;
  cout<<'=';
  cout<<3;
  cout<<endl;
  cout<<3;
  cout<<'x';
  cout<<2;
  cout<<'=';
  cout<<6;
  cout<<endl;
  cout<<3;
  cout<<'x';
  cout<<3;
  cout<<'=';
  cout<<9;
  cout<<endl;
  cout<<3;
  cout<<'x';
  cout<<4;
  cout<<'=';
  cout<<1;
  cout<<2;
  cout<<endl;
  cout<<3;
  cout<<'x';
  cout<<5;
  cout<<'=';
  cout<<1;
  cout<<5;
  cout<<endl;
  cout<<3;
  cout<<'x';
  cout<<6;
  cout<<'=';
  cout<<1;
  cout<<8;
  cout<<endl;
  cout<<3;
  cout<<'x';
  cout<<7;
  cout<<'=';
  cout<<2;
  cout<<1;
  cout<<endl;
  cout<<3;
  cout<<'x';
  cout<<8;
  cout<<'=';
  cout<<2;
  cout<<4;
  cout<<endl;
  cout<<3;
  cout<<'x';
  cout<<9;
  cout<<'=';
  cout<<2;
  cout<<7;
  cout<<endl;
  cout<<4;
  cout<<'x';
  cout<<1;
  cout<<'=';
  cout<<4;
  cout<<endl;
  cout<<4;
  cout<<'x';
  cout<<2;
  cout<<'=';
  cout<<8;
  cout<<endl;
  cout<<4;
  cout<<'x';
  cout<<3;
  cout<<'=';
  cout<<1;
  cout<<2;
  cout<<endl;
  cout<<4;
  cout<<'x';
  cout<<4;
  cout<<'=';
  cout<<1;
  cout<<6;
  cout<<endl;
  cout<<4;
  cout<<'x';
  cout<<5;
  cout<<'=';
  cout<<2;
  cout<<0;
  cout<<endl;
  cout<<4;
  cout<<'x';
  cout<<6;
  cout<<'=';
  cout<<2;
  cout<<4;
  cout<<endl;
  cout<<4;
  cout<<'x';
  cout<<7;
  cout<<'=';
  cout<<2;
  cout<<8;
  cout<<endl;
  cout<<4;
  cout<<'x';
  cout<<8;
  cout<<'=';
  cout<<3;
  cout<<2;
  cout<<endl;
  cout<<4;
  cout<<'x';
  cout<<9;
  cout<<'=';
  cout<<3;
  cout<<6;
  cout<<endl;
  cout<<5;
  cout<<'x';
  cout<<1;
  cout<<'=';
  cout<<5;
  cout<<endl;
  cout<<5;
  cout<<'x';
  cout<<2;
  cout<<'=';
  cout<<1;
  cout<<0;
  cout<<endl;
  cout<<5;
  cout<<'x';
  cout<<3;
  cout<<'=';
  cout<<1;
  cout<<5;
  cout<<endl;
  cout<<5;
  cout<<'x';
  cout<<4;
  cout<<'=';
  cout<<2;
  cout<<0;
  cout<<endl;
  cout<<5;
  cout<<'x';
  cout<<5;
  cout<<'=';
  cout<<2;
  cout<<5;
  cout<<endl;
  cout<<5;
  cout<<'x';
  cout<<6;
  cout<<'=';
  cout<<3;
  cout<<0;
  cout<<endl;
  cout<<5;
  cout<<'x';
  cout<<7;
  cout<<'=';
  cout<<3;
  cout<<5;
  cout<<endl;
  cout<<5;
  cout<<'x';
  cout<<8;
  cout<<'=';
  cout<<4;
  cout<<0;
  cout<<endl;
  cout<<5;
  cout<<'x';
  cout<<9;
  cout<<'=';
  cout<<4;
  cout<<5;
  cout<<endl;
  cout<<6;
  cout<<'x';
  cout<<1;
  cout<<'=';
  cout<<6;
  cout<<endl;
  cout<<6;
  cout<<'x';
  cout<<2;
  cout<<'=';
  cout<<1;
  cout<<2;
  cout<<endl;
  cout<<6;
  cout<<'x';
  cout<<3;
  cout<<'=';
  cout<<1;
  cout<<8;
  cout<<endl;
  cout<<6;
  cout<<'x';
  cout<<4;
  cout<<'=';
  cout<<2;
  cout<<4;
  cout<<endl;
  cout<<6;
  cout<<'x';
  cout<<5;
  cout<<'=';
  cout<<3;
  cout<<0;
  cout<<endl;
  cout<<6;
  cout<<'x';
  cout<<6;
  cout<<'=';
  cout<<3;
  cout<<6;
  cout<<endl;
  cout<<6;
  cout<<'x';
  cout<<7;
  cout<<'=';
  cout<<4;
  cout<<2;
  cout<<endl;
  cout<<6;
  cout<<'x';
  cout<<8;
  cout<<'=';
  cout<<4;
  cout<<8;
  cout<<endl;
  cout<<6;
  cout<<'x';
  cout<<9;
  cout<<'=';
  cout<<5;
  cout<<4;
  cout<<endl;
  cout<<7;
  cout<<'x';
  cout<<1;
  cout<<'=';
  cout<<7;
  cout<<endl;
  cout<<7;
  cout<<'x';
  cout<<2;
  cout<<'=';
  cout<<1;
  cout<<4;
  cout<<endl;
  cout<<7;
  cout<<'x';
  cout<<3;
  cout<<'=';
  cout<<2;
  cout<<1;
  cout<<endl;
  cout<<7;
  cout<<'x';
  cout<<4;
  cout<<'=';
  cout<<2;
  cout<<8;
  cout<<endl;
  cout<<7;
  cout<<'x';
  cout<<5;
  cout<<'=';
  cout<<3;
  cout<<5;
  cout<<endl;
  cout<<7;
  cout<<'x';
  cout<<6;
  cout<<'=';
  cout<<4;
  cout<<2;
  cout<<endl;
  cout<<7;
  cout<<'x';
  cout<<7;
  cout<<'=';
  cout<<4;
  cout<<9;
  cout<<endl;
  cout<<7;
  cout<<'x';
  cout<<8;
  cout<<'=';
  cout<<5;
  cout<<6;
  cout<<endl;
  cout<<7;
  cout<<'x';
  cout<<9;
  cout<<'=';
  cout<<6;
  cout<<3;
  cout<<endl;
  cout<<8;
  cout<<'x';
  cout<<1;
  cout<<'=';
  cout<<8;
  cout<<endl;
  cout<<8;
  cout<<'x';
  cout<<2;
  cout<<'=';
  cout<<1;
  cout<<6;
  cout<<endl;
  cout<<8;
  cout<<'x';
  cout<<3;
  cout<<'=';
  cout<<2;
  cout<<4;
  cout<<endl;
  cout<<8;
  cout<<'x';
  cout<<4;
  cout<<'=';
  cout<<3;
  cout<<2;
  cout<<endl;
  cout<<8;
  cout<<'x';
  cout<<5;
  cout<<'=';
  cout<<4;
  cout<<0;
  cout<<endl;
  cout<<8;
  cout<<'x';
  cout<<6;
  cout<<'=';
  cout<<4;
  cout<<8;
  cout<<endl;
  cout<<8;
  cout<<'x';
  cout<<7;
  cout<<'=';
  cout<<5;
  cout<<6;
  cout<<endl;
  cout<<8;
  cout<<'x';
  cout<<8;
  cout<<'=';
  cout<<6;
  cout<<4;
  cout<<endl;
  cout<<8;
  cout<<'x';
  cout<<9;
  cout<<'=';
  cout<<7;
  cout<<2;
  cout<<endl;
  cout<<9;
  cout<<'x';
  cout<<1;
  cout<<'=';
  cout<<9;
  cout<<endl;
  cout<<9;
  cout<<'x';
  cout<<2;
  cout<<'=';
  cout<<1;
  cout<<8;
  cout<<endl;
  cout<<9;
  cout<<'x';
  cout<<3;
  cout<<'=';
  cout<<2;
  cout<<7;
  cout<<endl;
  cout<<9;
  cout<<'x';
  cout<<4;
  cout<<'=';
  cout<<3;
  cout<<6;
  cout<<endl;
  cout<<9;
  cout<<'x';
  cout<<5;
  cout<<'=';
  cout<<4;
  cout<<5;
  cout<<endl;
  cout<<9;
  cout<<'x';
  cout<<6;
  cout<<'=';
  cout<<5;
  cout<<4;
  cout<<endl;
  cout<<9;
  cout<<'x';
  cout<<7;
  cout<<'=';
  cout<<6;
  cout<<3;
  cout<<endl;
  cout<<9;
  cout<<'x';
  cout<<8;
  cout<<'=';
  cout<<7;
  cout<<2;
  cout<<endl;
  cout<<9;
  cout<<'x';
  cout<<9;
  cout<<'=';
  cout<<8;
  cout<<1;
  cout<<endl;
  return 0;
}

C++: #include<iostream>
using namespace std;

int main(){
    for(int i = 1; i < 10; i++)
    for(int j = 1; i < 10; j++){
      cout << i * i << "x" << j * j << endl;
    }
    return 0;
}

C++: #include <iostream>

int main(int argc, char const* argv[])
{
  int i, j;

  for (i = 1; i <= 9; i++) {
    for (j = 1; j <= 9; j++) {
      std::cout << i << "x" << j << "=" << i * j << std::endl;
    }
  }

  return 0;
}