0
How can i print 100 digits number in c++
100 digits number
5 Respostas
+ 1
Do you want to print 100 different numbers?
Or a hundred digit long number?
+ 1
In the former case, just use a loop.
In the latter case, it depends if you also want to store the number or just print it. For printing again a loop and maybe string conversion would already be enough.
+ 1
i want to print a long number like 2^100 but unsigned long long only contains at least the [0, +18,446,744,073,709,551,615] range😭😢
+ 1
You could split the number into an array, then print the array index by index.