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 Order of Operations

how do you do the modulus operator outside of a c# compiler

literally what I asked

MODERATOR EDITED Title of post to use appropriate language for the Community.

2 Answers

Steven Parker
Steven Parker
231,248 Points

C# is not the only language with a "mod" function, in fact it's pretty common in computer languages. And if you put the desktop calculator ("calc") on Windows in the scientific or programmer mode, there is a button for "Mod". You can also type "somenumber mod othernumber" directly into Google and it will give you the answer.

Was there someplace specific outside of a C# program you wanted to use it?

Thanks. not long after I posted the question I figured out the answer. Thanks for replying anyway.