SHARE
TWEET

Untitled

a guest Feb 14th, 2020 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2.  
  3. namespace Weather_Forecast___Part_2
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.            
  10.  
  11.             double degree = double.Parse(Console.ReadLine());
  12.  
  13.             if (degree >= 26.00 && degree <= 35.00) {
  14.                 Console.WriteLine("Hot");
  15.             }
  16.  
  17.             if (degree >= 20.01 && degree <= 25.90)
  18.             {
  19.                 Console.WriteLine("Warm");
  20.             }
  21.  
  22.             if (degree >= 15.00 && degree <= 20.00)
  23.             {
  24.                 Console.WriteLine("Mild");
  25.             }
  26.  
  27.             if (degree >= 12.00 && degree <= 14.90)
  28.             {
  29.                 Console.WriteLine("Cool");
  30.             }
  31.  
  32.             if (degree >= 5.00 && degree <= 11.90)
  33.             {
  34.                 Console.WriteLine("Cold");
  35.             }
  36.  
  37.             else {
  38.                 Console.WriteLine("unknown");
  39.             }
  40.  
  41.          
  42.         }
  43.     }
  44. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top