This is a fairly simple question:
How to get 2 unsigned integer values and add them in C for the following input constraint.
0 <= A, B <= 10^98
I know I can take the input as maybe a string but still I had this question in mind.
I have written the below code but it will not be able to take such a big value of 10^98
#include <stdio.h>
int main() {
unsigned long long int a, b;
int x = scanf("%llu%llu", &a, &b);
while (x > 0) {
printf("%llu\n",(a + b));
x = scanf("%llu%llu" ,&a, &b);
}
return 0;
}