Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Numerics;
- namespace WeatherForecast
- {
- class Program
- {
- static void Main()
- {
- try
- {
- BigInteger n = BigInteger.Parse(Console.ReadLine());
- if (n <= sbyte.MaxValue && n >= sbyte.MinValue)
- {
- Console.WriteLine("Sunny");
- }
- else if (n <= int.MaxValue && n >= int.MinValue)
- {
- Console.WriteLine("Cloudy");
- }
- else if (n <= long.MaxValue)
- {
- Console.WriteLine("Windy");
- }
- }
- catch (Exception exce)
- {
- Console.WriteLine("Rainy",exce);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment