Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ConsoleApp11
- {
- class Program
- {
- static void Triugulnik(int a,int b, int c)
- {
- if (a == b && b == c && c == a) Console.WriteLine( "0");
- if (a == b || a == c || b == c) Console.WriteLine("-1");
- if (a < b + c && b < a + c && c < a + b) Console.WriteLine("1");
- else Console.WriteLine("2");
- }
- static void Main(string[] args)
- {
- Triugulnik(4, 2, 5);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement