Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#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