Advertisement
Guest User

05. Number in Range

a guest
Feb 26th, 2020
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.58 KB | None | 0 0
  1. using System;
  2.  
  3. namespace _5._Число_в_интервалa
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             double num = double.Parse(Console.ReadLine());
  10.             if (num >= -100 && num <= 100)
  11.             {
  12.                 if (num != 0)
  13.                 {
  14.                     Console.WriteLine("Yes");
  15.                 }
  16.  
  17.                 else
  18.                 {
  19.                     Console.WriteLine("No");
  20.                 }
  21.             }
  22.  
  23.  
  24.  
  25.         }
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.     }
  34.                
  35.                
  36.  
  37.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement