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;
- using System.Numerics;
- namespace CartesianSystem
- {
- class CartesianSystem
- {
- static void Main(string[] args)
- {
- decimal x = decimal.Parse(Console.ReadLine());
- decimal y = decimal.Parse(Console.ReadLine());
- if (x > 0 && y > 0)
- {
- Console.WriteLine(1);
- }
- else if (x > 0 && y < 0)
- {
- Console.WriteLine(4);
- }
- else if (x < 0 && y < 0)
- {
- Console.WriteLine(3);
- }
- else if (x < 0 && y > 0)
- {
- Console.WriteLine(2);
- }
- else if (x == 0 && y == 0)
- {
- Console.WriteLine(0);
- }
- else if (x == 0)
- {
- Console.WriteLine(5);
- }
- else if (y == 0)
- {
- Console.WriteLine(6);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment