Advertisement
Andreschka

Practic 3.2

Sep 22nd, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.71 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Practice
  4. {
  5.     class Program1
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             Console.Write("x = ");
  10.             double x = double.Parse(Console.ReadLine());
  11.             Console.Write("y = ");
  12.             double y = double.Parse(Console.ReadLine());
  13.             if (x > y && x < 70 && x > 0 && y > 0)
  14.             {
  15.                 Console.WriteLine($"Да");
  16.             }
  17.             else if (x < y || x > 70 || x < 0 || y < 0)
  18.             {
  19.                 Console.WriteLine($"Нет");
  20.             }
  21.             else
  22.             {
  23.                 Console.WriteLine($"На границе");
  24.             }
  25.             Console.ReadKey();
  26.         }
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement