Skip to content

Instantly share code, notes, and snippets.

@michaels123
Created September 21, 2018 13:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaels123/e16fbb8715275fdb11a6a88afd98d6c1 to your computer and use it in GitHub Desktop.
Save michaels123/e16fbb8715275fdb11a6a88afd98d6c1 to your computer and use it in GitHub Desktop.
int main ()
{
int a = 5;
int b = 3;
int c;
c = a + b;
std::cout << "Addition: " << c << std::endl;
c = a - b;
std::cout << "Subtraktion: " << c << std::endl;
c = a * b;
std::cout << "Multiplikation: " << c << std::endl;
c = a / b;
std::cout << "Division: " << c << std::endl;
c = a % b;
std::cout << "Modulo: " << c << std::endl;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment