nvnnaidenov

CelsiusToFahrenheit - Chapter 2.0

Feb 9th, 2022
834
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.28 KB | None | 0 0
  1. //Task 009, Chapter 2.0
  2. using System;
  3.  
  4. public class CelsiusToFahrenheit
  5. {
  6.     static void Main()
  7.     {
  8.         double celsius = double.Parse(Console.ReadLine());
  9.  
  10.         double fahrenheit = celsius * 9 / 5 + 32;
  11.  
  12.         Console.WriteLine(Math.Round(fahrenheit, 2));
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment