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.

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
215,372 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.