+ 2
If you divide 365 by 1,2,3.....365, and then 366 by 1,2,3......366 what is the difference of the sum of the remainders of the 2
i wrote a code that i forgott and now this one does not work. https://code.sololearn.com/cKJbWnYg00Gd/?ref=app
2 Respuestas
+ 16
make a method for summing up the remainders & then return the return
then just print (method (366)-method (355))
+ 15
#might be this is the solution of ur problem👇
x = 1
a = 365
totalscore = 0
while x < 366:
a%x
x = x+1
totalscore = totalscore + a
print(totalscore )
"""Do same for 366 and then follow Gaurav's instruction"""