Skip to content

Instantly share code, notes, and snippets.

@Baekjoon
Created April 16, 2015 06:06
Show Gist options
  • Save Baekjoon/dbecf2caae42553b391b to your computer and use it in GitHub Desktop.
Save Baekjoon/dbecf2caae42553b391b to your computer and use it in GitHub Desktop.
a+b, a-b, a*b, a/b
#include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << a << " + " << b << " = " << a + b << endl;
cout << a << " - " << b << " = " << a - b << endl;
cout << a << " * " << b << " = " << a * b << endl;
cout << a << " / " << b << " = " << a / b << endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment