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
DotnetQ6
my wall
two words are anagrams
asdxsaszxasdf
Convert string to TimeSpan in C#
C# - Integer to Roman
merge 2 sorted array
DB Search
Problem 5 SingleDigit
internal access specifier