diff --git a/Variables-and-Types5 b/Variables-and-Types5 new file mode 100644 index 0000000..6aa8a12 --- /dev/null +++ b/Variables-and-Types5 @@ -0,0 +1,20 @@ +```cpp +#include +using namespace std; + +int main() { + int num1, num2; + cout << "Please enter two positive integers, separated by a space: "; + cin >> num1 >> num2; + + cout << num1 << " + " << num2 << " = " << num1 + num2 << endl; + cout << num1 << " - " << num2 << " = " << num1 - num2 << endl; + cout << num1 << " * " << num2 << " = " << num1 * num2 << endl; + cout << num1 << " / " << num2 << " = " << (double)num1 / num2 << endl; + cout << num1 << " div " << num2 << " = " << num1 / num2 << endl; + cout << num1 << " mod " << num2 << " = " << num1 % num2 << endl; + + return 0; +} + +```