Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace zad2Rat
- {
- internal class Program
- {
- public static void Main(string[] args)
- {
- int x, y;
- Console.Write("Введите X: ");
- if (int.TryParse(Console.ReadLine(),out x) == false)
- Console.WriteLine("Неправильный ввод. Теперь X = 0");
- Console.Write("Введите Y: ");
- if (int.TryParse(Console.ReadLine(),out y) == false)
- Console.WriteLine("Неправильный ввод. Теперь Y = 0");
- if (x == 0 && y == 0)
- Console.WriteLine("В центре");
- if (x > 0 && y > 0)
- Console.WriteLine("Первая четверть");
- else if (x < 0 && y > 0)
- Console.WriteLine("Вторая четверть");
- else if (x < 0 && y < 0)
- Console.WriteLine("Третья четверть");
- else
- Console.WriteLine("Четвертая четверть");
- }
- }
- }
Advertisement
Comments
-
- 101.166.94.231:27030 Cheap gmod server! Join today!
Add Comment
Please, Sign In to add comment
Advertisement