Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Problem_1___Cartesian_Coordinate_System
- {
- class Program
- {
- static void Main(string[] args)
- {
- decimal x1 = decimal.Parse(Console.ReadLine());
- decimal y1 = decimal.Parse(Console.ReadLine());
- if (x1 > 0 && y1 > 0)
- {
- Console.WriteLine("1");
- }
- else if (x1 < 0 && y1 > 0)
- {
- Console.WriteLine("2");
- }
- else if (x1 < 0 && y1 < 0)
- {
- Console.WriteLine("3");
- }
- else if (x1 > 0 && y1 < 0)
- {
- Console.WriteLine("4");
- }
- else if (x1 == 0 && y1 != 0)
- {
- Console.WriteLine("5");
- }
- else if (x1 != 0 && y1 == 0)
- {
- Console.WriteLine("6");
- }
- else
- {
- Console.WriteLine("0");
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment