C# arithmetic

See here for a short interactive tutorial about number-arithmetic in C#

Of course, arithmetic in C# is similar to any other language. 

Here's something to think about: Normally, if we divide & multiply by the same number, we get back the variable. For example:

(c / a) * a 

Would evaluate to c itself.

However, there are some situations in which this is not true. It will not evaluate to c

What do you think? Write the situations that come to your mind below.

Next, we look at control structures and a small optimization problem

Comments

Popular posts from this blog

Relationships in a Relational Database

Data Schema and Blobs

Power On!