diff options
author | Oskar <[email protected]> | 2024-07-29 15:22:18 +0200 |
---|---|---|
committer | Oskar <[email protected]> | 2024-07-29 15:22:18 +0200 |
commit | 7aac5c6dc29079971a5c964762cdb294782b14d5 (patch) | |
tree | f73768958b319ec6f01c32c67f6ee8b3e90f5b75 /2p3-2p4.cpp | |
parent | 5aac3c3f8bcfef0b2aad28d91d87b9ebf1d5e7df (diff) |
more
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; +} |