Advertisement
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 C_sharp_lineinie_vir_4
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("Input x");
- string xAsString = Console.ReadLine();
- int x = int.Parse(xAsString);
- Console.WriteLine("Input y");
- string yAsString = Console.ReadLine();
- int y = int.Parse(yAsString);
- // Ввод окончен
- if ((x > 0 && y > 0) || (x < 0 && y < 0))
- {
- Console.WriteLine("These numbers are the coordinates of the points lying in the first or the third coordinate quarter = true");
- }
- else
- Console.WriteLine("These numbers are the coordinates of the points lying in the first or the third coordinate quarter = false");
- Console.ReadKey();
- }
- }
- }
- //bool statement = ((x > 0 && y > 0) || (x < 0 && y < 0));
- Console.WriteLine(statement);
- Console.ReadKey();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement