Sunday , May 29 2022
Home / C# / C# – Learning some .NET Methods (Maths, Split)

C# – Learning some .NET Methods (Maths, Split)

In this lesson we will learn more about Methods. We will learn how to use some maths methods like Sin, Cos, Tan, Round, Pow and Sqrt. We will also learn how to split string in C#.Topics covered:

Topics covered:

  1. Maths functions: Sin(), Cos(), Tan(), Round(), Pow(), Sqrt()
  2. string Split()
static void Main(){

 // Call Maths functions by Maths library name, like this:

static void Main(){

 string s1 = "Hello world!";
 string[] substring = s1.Split(' ');

 foreach (string part in substring){



About Waleed Baig

I am doing BS Computer Science. I have a passion to learn new technology and spread it. I am more enthusiastic about learning complex algorithm and making creative and efficient solution to a problem.

Check Also

C# – More on arrays, loops and conditionals (Part 2)

  This is the 2nd part of: More about arrays, loops and conditionals (Part 1) Part 2: …

Leave a Reply

Your email address will not be published.