Skip to content

PRO TIP Block youtube.com at the DNS level โ€” Pi-hole, NextDNS or your hosts file โ€” but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

C# Math class ๐Ÿ“

82.6K views on YouTube

C# math class methods tutorial example explained

#C# #Math #methods

using System;

namespace MyFirstProgram
{
class Program
{
static void Main(string[] args)
{

double x = 3;
double y = 5;

double a = Math.Pow(x, 2);
double b = Math.Sqrt(x);
double c = Math.Abs(x);
double d = Math.Round(x);
double e = Math.Ceiling(x);
double f = Math.Floor(x);
double g = Math.Max(x, y);
double h = Math.Min(x, y);

Console.WriteLine(a);

Console.ReadKey();
}
}
}