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 :: c# use cefcharp and selenium can? 
Csharp :: stack in c# 
Csharp :: process run teamviewer address parametr c# 
Csharp :: how to change an object color with fill c# 
Csharp :: linq query languages 
Csharp :: use Multiple forms in one Csharp panel in one Windows Form panel 
Csharp :: string extentions not working 
Csharp :: c# how to convert string to float 
Csharp :: xml reader attributes 
Csharp :: how to split string into a list ignoring number of spaces c# 
Csharp :: c# picturebox zoom 
Csharp :: c# call constructor from constructor 
Csharp :: Web API - Stream large file to client 
Csharp :: umbraco cannot start. a connection string is configured but umbraco cannot connect to the database. 
Csharp :: how to update modal class using dbfirst in asp.net core 
Csharp :: how to do minus with button c# 
Csharp :: How to add dollar sign $ to strings in Dart 
Csharp :: does Registry.CurrentUser.OpenSubKey create the key if it does not exist? 
Csharp :: asp.net render control to string 
Csharp :: c# convert string to datetime any format 
Csharp :: how to get c# code of aspx page 
Csharp :: if equal statement c# 
Csharp :: WPF raotate Icon 
Csharp :: Remove tabpage by key 
Csharp :: C# if...else if Statement 
Csharp :: pyqt single instance 
Csharp :: .net core get exe path 
Csharp :: .NET TLS 1.3 example 
Csharp :: c# wait without GUI blocks 
Csharp :: how to make a variable unity 
ADD CONTENT
Topic
Content
Source link
Name
6+8 =