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;
- using ConsoleApp1;
- namespace ConsoleApp1
- {
- class Program
- {
- static void Main(string[] args)
- {
- int a, b, c;
- Console.Write("Enter A: ");
- a = Int32.Parse(Console.ReadLine());
- Console.Write("Enter B: ");
- b = Int32.Parse(Console.ReadLine());
- Console.Write("Enter C: ");
- c = Int32.Parse(Console.ReadLine());
- // Любая проверка чего-либо может быть выполнена только с помощью условного оператора - if [else]
- // Для проверок можно использовать только: <,<=,>,>=,==,!=,! [ &&,|| ]
- if((a>0 && b<0 && c<0) || (a < 0 && b > 0 && c < 0) || (a < 0 && b < 0 && c > 0))
- {
- Console.WriteLine("TRUE");
- }
- else
- {
- Console.WriteLine("FALSE");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement