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 trial

C# C# Basics (Retired) Perform Math

Teachers note indicate division before multiplication, is standard arithmetic Multiply first, then Division?

PEDMAS is the acronym I remember. /*% was in teacher notes or is it */ % ?.

1 Answer

Hi Westley,

Those 3 operators all have the same precedence. The Teacher's Notes also mentions "Left to right".

This means that if you have more than one of these operators then you would evaluate them in a left to right order.