using System;
class Program
{
static void Main()
{
double number = 25;
Console.WriteLine("Square Root = " + Math.Sqrt(number));
Console.WriteLine("Power = " + Math.Pow(5, 2));
Console.WriteLine("Absolute Value = " + Math.Abs(-25));
Console.WriteLine("Ceiling = " + Math.Ceiling(10.25));
Console.WriteLine("Floor = " + Math.Floor(10.75));
Console.WriteLine("Round = " + Math.Round(10.56));
Console.WriteLine("Maximum = " + Math.Max(20, 50));
Console.WriteLine("Minimum = " + Math.Min(20, 50));
}
}
No comments:
Post a Comment