VelizarAvramov

09. Celsius to Fahrenheit

Mar 19th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.43 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace _11_CelsiusToFahrenheit
  8. {
  9.     class CelsiusToFahrenheit
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             double celsius = double.Parse(Console.ReadLine());
  14.  
  15.             double result = (celsius * 1.8) + 32;
  16.             Console.WriteLine("{0:f2}", result);
  17.         }
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment