C# Math

The C# Math class has many methods that allows you to perform mathematical tasks on numbers

Math.Max(x,y)

The Math.Max(x,y) method can be used to find the highest value of x and y:

Example

Math.Max(5, 10);

Continue reading C# Math

C Math Functions

Math Functions

There is also a list of math functions available, that allows you to perform mathematical tasks on numbers.

To use them, you must include the math.h header file in your program:

#include <math.h>

Continue reading C Math Functions