diff options
Diffstat (limited to '2p3-2p4.cpp')
-rw-r--r-- | 2p3-2p4.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/2p3-2p4.cpp b/2p3-2p4.cpp new file mode 100644 index 0000000..dcc0c86 --- /dev/null +++ b/2p3-2p4.cpp @@ -0,0 +1,22 @@ +#include <iostream> +#include "sales_item.hpp" + +/* + * + * 2.3 and 2.4 + * + * + */ + +int main () { + + unsigned u = 10, u2 = 42; + std::cout << u2 - u << std::endl; // 32 + std::cout << u - u2 << std::endl; // big ass number + int i = 10, i2 = 42; + std::cout << i2 - i << std::endl; // 32 + std::cout << i - i2 << std::endl; // -32 + std::cout << i - u << std::endl; // 0 + std::cout << u - i << std::endl; // 0 + return 0; +} |