Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

math with c sharp

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 :)
Comment

math in C#

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);
        
        
        
        
    }
}
Comment

basic math functions in c#

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);
Comment

PREVIOUS NEXT
Code Example
Csharp :: unity action 
Csharp :: delete all fields that start with mongo 
Csharp :: triangle 
Csharp :: unity animation length 
Csharp :: assert throw 
Csharp :: string.format() c# 
Csharp :: what are delegates and how to use them c# 
Csharp :: how to create a string in c# 
Csharp :: change canvas color uwp c# 
Csharp :: how to use date range picker in asp.net C# 
Csharp :: blazor use static json files 
Csharp :: check .net installing 
Csharp :: building a config object in XML C# 
Csharp :: 1180 beecrowd URI 
Csharp :: command parameter wpf 
Csharp :: remove loading bars devexpress on callback 
Csharp :: List of border roleplays roblox 
Csharp :: .net console arguments 
Csharp :: how to assign 2d physics material through script 
Csharp :: photon 
Csharp :: async method out parameter c# 
Csharp :: build url mvs view 
Csharp :: get number of sundays in a month c# 
Csharp :: how to change something in the window using a thread wpf 
Csharp :: how to reference a local file c# 
Csharp :: using Tls12 .net 3.5 
Csharp :: C# how to search textfile and append 
Csharp :: Derived classes of abstract class share property 
Csharp :: get c directory contains system windows c# 
Csharp :: check null type 
ADD CONTENT
Topic
Content
Source link
Name
3+8 =