diff --git a/2. Programming/1. Data types/Whole numbers/program.cpp b/2. Programming/1. Data types/Whole numbers/program.cpp new file mode 100644 index 0000000..afa34f7 --- /dev/null +++ b/2. Programming/1. Data types/Whole numbers/program.cpp @@ -0,0 +1,27 @@ +#include +#include + +using namespace std; + + int main() + { + short num = -100; + unsigned char num1 = 128; + short num2 = -3540; + int num3 = 64876; + long long num4 = 2147483648; + int num5 = -1141583228; + long long num6 = -1223372036854775808; + cout << num << endl; + cout << static_cast(num1) << endl; + cout << num2 << endl; + cout << num3 << endl; + cout << num4 << endl; + cout << num5 << endl; + cout << num6 << endl; + return 0; + } + + + +