Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialibrahim adan hassan jama
552 Pointswhat should i start with ??
Use what you learned about the order of math operations to solve this problem. You can use a calculator.
8 * 7 + 8 % 5 + 6 / 2 =
2 Answers
Ted Dunn
43,783 PointsFirst, multiplication, division and modulo all have higher precedence than addition. The next rule to apply would be that operator precedence proceeds from left to right.
This expression could have been written as: (8*7) + (8%5) + (6/2).
MargaretAnne Livesay
7,880 Points8%5 would be 3 since the remainder of 8/5 is 3.
The answer for the expressions is 62
Shani Connell
26,307 PointsThanks heaps for the clear explanation MargaretAnne!
ibrahim adan hassan jama
552 Pointsibrahim adan hassan jama
552 PointsSo how much is (8%5)