Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Math Operations
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { //Your code goes here Console.WriteLine("Hello, world!"); var finalData = new { s2 = 5.4, t2 = 2.4 }; /*var a1 = finalData.Sum(val => val.s1); var a2 = finalData.Sum(val => val.s2); var b1 = finalData.Sum(val => val.t1); var b2 = finalData.Sum(val => val.t2); var totalA = a1 + a2; var totalB = b1 + b2; Console.WriteLine(totalA); Console.WriteLine(totalB); var r = 0; var m = 4.3; var rm = r + m; Console.WriteLine(rm); */ decimal? a = 5.5M; decimal? b = 3.6M; var a1 = a??0; var b1 = b??0; var c1 = a1 + b1; var c = (a??0) + (b??0); //Console.WriteLine(a.GetType()); Console.WriteLine("res c:" + c); Console.WriteLine("res c1:" + c1); } } }
run
|
edit
|
history
|
help
0
BNV
Project Euler problem 1
Eliminate duplicates char in string either upper or lower case
ö1
Dokkan 2.0
PolyMorphism
IEqatable simple object compare
nr
smallestof3
towers of hanoi