16 Answers
+ 14
https://code.sololearn.com/co0qpi10eyab/?ref=app
https://code.sololearn.com/cmUE9B5ddu4B/?ref=app
+ 14
Anirudh, are you in 11
+ 3
+ 2
I believe i have a code for this. I cant remember if i finished it or not but i will like for u
+ 2
plz send soon as possible
+ 2
What you need it for?
+ 2
for exam purpose
+ 2
Have you tried writing it yet?
+ 2
not yet
+ 2
thanks
+ 2
thank you for your time
+ 2
Made for ya using 'for' loop.....
Hope it helps...
https://code.sololearn.com/cKs6r0pZ6BnT/?ref=app
+ 1
Or there's the general formula