Advertisement
Shtiler

Fahrenheit To Celcius

Sep 11th, 2019
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 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 homework_3
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. double fahrenheit;
  14. Console.WriteLine("Enter The Degrees in Farenheit");
  15. fahrenheit = double.Parse(Console.ReadLine());
  16. Console.WriteLine("fahrenheit: " + fahrenheit);
  17. Console.ReadLine();
  18. double celsius;
  19. celsius = (fahrenheit - 32) * 5 / 9;
  20. Console.WriteLine("Celsius: " + celsius);
  21. Console.ReadLine();
  22.  
  23. }
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement