Advertisement
GabijaL

Temperature

Feb 25th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. Console.WriteLine("Įrašykite temperaturą išreikštą Farenheitais (°F)");
  2. float temperature = float.Parse(Console.ReadLine());
  3. float celsius = 0f;
  4. celsius = (temperature - 32) * 5 / 9;
  5. Console.WriteLine(celsius);
  6. Console.ReadLine();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement