+ 1
How can I store such a large number in C
#include<stdio.h> #include<string.h> int main () { long long num; int n; int divisor; scanf ("%d", &n); num = (10000 * 100000000000000000000 * 100000000000000000000 * 100000000000000000000) if (1 < n && n < (num -1)) if (n % 9 == 0) printf ("divisibilidad!"); if else printf ("no es multiplo"); return 0; }
5 ответов
+ 2
How large?
+ 1
10^64-1
+ 1
I think is too big for long long int type
0
Try double. He's can have 10000000000000000000000000000000000, easy. But he cant have 10000000000000001 :-(