I was asked to find largest product of adjacent 13 terms in this 1000 digit number.. But i don't get output... What to do... | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

I was asked to find largest product of adjacent 13 terms in this 1000 digit number.. But i don't get output... What to do...

ckeck code https://code.sololearn.com/cli4Vg10sc8j/?ref=app

29th Jun 2018, 8:23 AM
Dhanaraj S
Dhanaraj S - avatar
6 Answers
+ 1
The code does not compile, since there are breaks and no "" for the char array This compiles, but I did not check for overflow. https://code.sololearn.com/cjx7A4FTasI1/?ref=app
29th Jun 2018, 8:48 AM
Matthias
Matthias - avatar
+ 1
The number is toooo large. Int type can't afford the number.
29th Jun 2018, 8:43 AM
Disvolviĝo;
Disvolviĝo; - avatar
+ 1
matthias.... i haven't noticed that... now it works... thanks maaahn
29th Jun 2018, 8:54 AM
Dhanaraj S
Dhanaraj S - avatar
0
then what to do
29th Jun 2018, 8:44 AM
Dhanaraj S
Dhanaraj S - avatar
0
i have given type long long int
29th Jun 2018, 8:48 AM
Dhanaraj S
Dhanaraj S - avatar
0
thanks everyone
29th Jun 2018, 8:54 AM
Dhanaraj S
Dhanaraj S - avatar