Sha256: d9a3b2e79c5d35d97b3b8a3a1ef9fac597c6db9c35a5b1087c4d4f67536dff41

Contents?: true

Size: 267 Bytes

Versions: 10

Compression:

Stored size: 267 Bytes

Contents

#include <iostream>

int main()
{
  int a, b;
  std::cin >> a >> b;
  std::cout << "a+b = " << a+b << "\n";
  std::cout << "a-b = " << a-b << "\n";
  std::cout << "a*b = " << a*b << "\n";
  std::cout << "a/b = " << a/b << ", remainder " << a%b << "\n";
  return 0;
}

Version data entries

10 entries across 7 versions & 1 rubygems

Version Path
zettacode-0.1.7 files.zettacode/arithmetic.integer/c++.txt
zettacode-0.1.6 files.zettacode/arithmetic.integer/c++.txt
zettacode-0.1.6 files.zettacode2/arithmetic.integer/c++.txt
zettacode-0.1.5 files.zettacode/arithmetic.integer/c++.txt
zettacode-0.1.5 files.zettacode2/arithmetic.integer/c++.txt
zettacode-0.1.4 files.zettacode/arithmetic.integer/c++.txt
zettacode-0.1.4 files.zettacode2/arithmetic.integer/c++.txt
zettacode-0.1.3 files.zettacode/arithmetic.integer/c++.txt
zettacode-0.1.2 files.zettacode/arithmetic.integer/c++.txt
zettacode-0.1.1 zettacode.files/arithmetic.integer/c++.txt