Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class Program
- {
- static void Main()
- {
- double w, t, v;
- Console.Write("Enter the temperature: ");
- t = Convert.ToDouble(Console.ReadLine());
- Console.Write("Enter the wind speed: ");
- v = Convert.ToDouble(Console.ReadLine());
- t = t * 9 / 5 + 32;
- v *= 2.237;
- w = 35.74 + 0.6125 * t + (0.4275 * t - 33.75) * Math.Pow(v, 0.16);
- Console.WriteLine($"The effective air temperature is {w}");
- if (Math.Abs(t) > 50 || v < 3 || v > 120)
- {
- Console.WriteLine("The result may be incorrect.");
- }
- Console.ReadKey();
- }
- }
Add Comment
Please, Sign In to add comment