Created
November 20, 2022 14:47
-
-
Save Tynael/8ca8fb3c6be0c85c19e8e69c7ad45062 to your computer and use it in GitHub Desktop.
Make Large Numbers Easier to Read
This file contains hidden or 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> | |
| using namespace std; | |
| int main() | |
| { | |
| long long int num1 = 1'23'456; | |
| long long int num2 = 12'34'56; | |
| long long int num3 = 123'456; | |
| return 0; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example used in https://neutrondev.com/numeric-separator-big-numbers/