Advertisement
KrasenPenev

wheter time 2

Jan 17th, 2020
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 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 Wheter_part_two
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. double celsium = double.Parse(Console.ReadLine());
  14.  
  15. if (celsium>=26)
  16. {
  17. Console.WriteLine("Hot");
  18. }
  19. else if (celsium<=25.9)
  20. {
  21. Console.WriteLine("Warm");
  22. }
  23. else if (celsium>=20.1)
  24. {
  25. Console.WriteLine("Warm");
  26. }
  27. else if (celsium<=20.00)
  28. {
  29. Console.WriteLine("Mild");
  30. }
  31. else if (celsium>=15.00)
  32. {
  33. Console.WriteLine("Mild");
  34. }
  35. else if (celsium<=14.9)
  36. {
  37. Console.WriteLine("Cool");
  38. }
  39. else if (celsium>=12.00)
  40. {
  41. Console.WriteLine("Cool");
  42. }
  43. else if (celsium<=11.9)
  44. {
  45. Console.WriteLine("Cold");
  46. }
  47. else if (celsium==4.00)
  48. {
  49. Console.WriteLine("Cold");
  50. }
  51. else
  52. {
  53. Console.WriteLine("unknow");
  54. }
  55.  
  56. }
  57. }
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement