Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace temp
- {
- class Program
- {
- static void Main(string[] args)
- {
- int Farenheit;
- double Celsius;
- double a;
- Console.Write("Ange grader i Farenheit : ");
- Farenheit = int.Parse(Console.ReadLine());
- a = (Farenheit - 32);
- Celsius = a * 5 / 9;
- // double total = Math.Round(Celsius,1);
- // Console.WriteLine(total);
- Console.WriteLine($"{Celsius:f1}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement