+ 1
Need explanation
output is 4. how it comes? https://code.sololearn.com/c71kADFbcl0d/?ref=app
2 Réponses
+ 2
hi,
first it throws arithmetic exception and catch handles the exception by incrementing n value by 2 so n=8
8/1=8
8/2=4 third iteration so output is 4
+ 2
okay, I got it.
Thank you.