• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu
0

Why the output is 40 instead of 50. Please explain

https://code.sololearn.com/WttUthZbxOrr/?ref=app

htmljavascript
6th Aug 2020, 1:14 PM
Avinash
2 Answers
+ 1
Remember % is return remainder (10+40=50)-(2*5=10)+(60%6=0)
6th Aug 2020, 1:20 PM
Vadivelan
+ 1
Vadi velan thanks for the explanation
6th Aug 2020, 1:22 PM
Avinash

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
My codebits section is full of deleted codes
12 Votes
Ai generated practices
1 Votes
Where did mess up....
1 Votes
I have an error in a problem and I don't know what the correct answer is
1 Votes
Feedback on my portfolio
0 Votes
I need a siren sound
0 Votes
Yo this is madness
0 Votes
How can i insert files?
1 Votes
Where can I find python and SQL projects to work on for my portfolio that are beginner to intermediate?
1 Votes
help!!! How to build portfolio? I am in last year of highschool and still noob lol
0 Votes