chimev88

Conversion

Jan 22nd, 2016
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.32 KB | None | 0 0
  1. using System;
  2.  
  3. class Conversion
  4. {
  5.     static void Main()
  6.     {
  7.         Console.WriteLine("Enter the degrees in celsius");
  8.         int celsius = int.Parse(Console.ReadLine());
  9.         Console.WriteLine("Kelvin = {0}", celsius + 273.15);
  10.         Console.WriteLine("Fahrenheit = {0}", celsius * 18 / 10 + 32);
  11.     }
  12. }
Add Comment
Please, Sign In to add comment