Advertisement
Guest User

Untitled

a guest
Mar 8th, 2017
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.25 KB | None | 0 0
  1. using static System.Console;
  2. using static System.Math;
  3.  
  4. class CelsiusToFahrenheit
  5. {
  6.     static void Main()
  7.     {
  8.         var tempC = double.Parse(ReadLine());
  9.  
  10.         var tempF = tempC * 9 / 5 + 32;
  11.  
  12.         WriteLine(Round(tempF, 2));
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement