- using ConsoleApp1;
- using System;//程式庫呼叫
- using System.ComponentModel.DataAnnotations;
- using System.Linq.Expressions;
- using ABC.qq;
- class Program//負責一部分工作的人
- {
- static void Main()//method ..Entry Point 程式進入點
- {
- try
- {
- double x=0,y=0;
- x=Convert.ToDouble(Console.ReadLine());
- y=Convert.ToDouble(Console.ReadLine());
- if(x==0.0 && y==0.0)
- Console.WriteLine("("+x+","+y+") orign");
- else if(x==0.0 && y!=0.0)
- Console.WriteLine("(" + x + "," + y + ") Y");
- else if (x != 0.0 && y == 0.0)
- Console.WriteLine("(" + x + "," + y + ") X");
- else if (x > 0.0 && y> 0.0)
- Console.WriteLine("(" + x + "," + y + ") 1");
- else if (x < 0.0 && y < 0.0)
- Console.WriteLine("(" + x + "," + y + ") 3");
- else if (x > 0.0 && y < 0.0)
- Console.WriteLine("(" + x + "," + y + ") 4");
- else if (x < 0.0 && y > 0.0)
- Console.WriteLine("(" + x + "," + y + ") 2");
- }
- catch
- {
- Console.WriteLine("error");
- }
- }
- }
複製代碼 |