using System; public class Program { public static void Main() { { int a, b; Console.WriteLine("Въвди стойност за a"); a = int.Parse(Console.ReadLine()); Console.WriteLine("Въвeди стойност за b"); b = int.Parse(Console.ReadLine()); if (a <= 0) Console.WriteLine("Въведената стойност за страна а не е коректана"); else Console.WriteLine("Въведената стойност страна а е коректана"); if (b <= 0) Console.WriteLine("Въведената стойност страна b не е коректана"); else Console.WriteLine("Въведената стойност страна b e коректана"); int P=2*(a+b); Console.Write("Периметър="); Console.WriteLine(P); int S=a*b; Console.Write("Лице="); Console.WriteLine(S);