Advertisement
Kuncavia

CelsiustoFahrenheit

Sep 6th, 2016
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.23 KB | None | 0 0
  1. using System;
  2.  
  3. class CelsiustoFahrenheit
  4. {
  5.     static void Main(string[] args)
  6.     {
  7.         double c = double.Parse(Console.ReadLine());
  8.         double f = (c * 9) / 5 + 32;
  9.         Console.WriteLine("{0:F2}", f);
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement