Deepak and his journey


can i know whats wrong in my code?

hello @bommareddyjyothiswaroopreddy

a) use long long to avoid overflow

b) u dont have to use mod, it is not mentioned anywhere in the question

c) once u have prepared ur array a.
u only have to do
sum+=a[i]*b[i];

pls check ur updated code here->

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.