Skip to content

Instantly share code, notes, and snippets.

@khatchad
Created August 13, 2018 21:51
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 khatchad/288e48b1e93f1f955bce2fed98730ce6 to your computer and use it in GitHub Desktop.
Save khatchad/288e48b1e93f1f955bce2fed98730ce6 to your computer and use it in GitHub Desktop.
#include <iostream>
#include <climits>
using namespace std;
int main() {
int i;
int j;
int result;
cout << "Enter i: ";
cin >> i;
cout << "Enter j: ";
cin >> j;
cout << "For this compiler, integers are: " << sizeof(int) << " bytes." << endl
<< "Largest integer is: " << INT_MAX << endl
<< "Smallest integer is: " << INT_MIN << endl;
result = i * 10;
cout << "Your number times ten is: " << result << endl;
result = i + j;
cout << "The sum of your number is: " << result << endl;
result = i * j;
cout << "The product is: " << i * j << endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment