Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Celsius to Kelvin / Kelvin to Celsius
//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) { Console.WriteLine("15 celsius para kelvin => " + KelvinCensius(15)); Console.WriteLine("15 kelvin para celsius => " + KelvinCensius(15, true)); } private static double KelvinCensius(double d, bool kelvin = false) { return kelvin ? (d - 273.15) : (d + 273.15); } } }
run
|
edit
|
history
|
help
0
Hello World Program
cs001
ProtectedUse
Lazy XML selection
tax cal
koko
10
triangular matrix
Hello World!
pankaj_sql