Created
August 13, 2018 21:51
-
-
Save khatchad/288e48b1e93f1f955bce2fed98730ce6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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