public int number_1 = 13
public int number_2 = 25
public int total_number = number_2 - = number_1
Console.Writeline(total_number) //result should be 12 :)
public int total_number_2 = number_1 + = number_2
Console.Writeline(total_number_2) //result should be 28 :)
public int total_numner = number_2 + = number_2
Console.Writeline(total_number_2) //result should be dubble the amount of number 2: 50 :)
class Calc {
static void Main()
{
double squrt_value = Math.Sqrt(64);
Console.WriteLine("Sqrt value = " + squrt_value)
double e = Math.E;
Console.WriteLine("Math.E = " + e);
double pi_value = Math.PI;
Console.WriteLine("Math.PI = " + pi_value);
double min_value = Math.Min(5, 10);
Console.WriteLine("Min value =" + min_value);
}
}
int a = 10;
int b = 5;
Console.WriteLine("------------Basic math functions----------------");
Console.WriteLine("Multiplication:- ");
Console.WriteLine(a*b);
Console.WriteLine("Subtraction:- ");
Console.WriteLine(a-b);