Advertisement
Spocoman

03. Celsius to Fahrenheit

Nov 15th, 2021 (edited)
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.33 KB | None | 0 0
  1. using System;
  2.  
  3. namespace CelsiusToFahrenheit
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.  
  10.             double celsius = double.Parse(Console.ReadLine());
  11.             double fahrenheit = celsius * 1.800 + 32;
  12.             Console.WriteLine($"{fahrenheit:f2}");
  13.          
  14.         }
  15.  
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement