## Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

### Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

# I'm stuck on the maths for C# basics the question is 8 * (7+8) % 5 + 6/2

I thought you would do the parenthesis first leaving 15 between them, multiplied by 8 giving the value of 120, then taking 5 away you are left with 115, then dividing 6 by 2 is 3, adding 115 and 3 together gets 118 but it is wrong. I'm not sure how I'm messing up the order but any help would be appreciated

If you want this solved for you the lazy way, you can try typing in the equation into the REPL by typing csharp in the console with workspaces May have already known this but i guess it may help haha STAFF

It's not subtracting by 5 .,.. it's getting the mod of 120 and 5. So it looks like this.

8 x (7 + 8) % 5 + 6 /2 =

8 x 15 % 5 + 6/2 =

120 % 5 + 6/2 =

0 + 6 / 2 = because 120 divided by 5 has a remainder of 0 aka it's evenly divisible by 5

0 + 3 =

Happy coding!  