Új hozzászólás Aktív témák

  • fabri07

    aktív tag

    Bocsi, de az első kb nem ennyi ? :D
     class Program
        {
             
            static void Main(string[] args)
            {
                Megszerkesztheto();
            }

            public static void Megszerkesztheto()
            {
                Console.WriteLine("a oldal:");
                int a = Convert.ToInt32(Console.ReadLine());
                Console.WriteLine("b oldal:");
                int b = Convert.ToInt32(Console.ReadLine());
                Console.WriteLine("c oldal:");
                int c = Convert.ToInt32(Console.ReadLine());

                int d = a + b;

                if (d > c)
                {
                    Console.WriteLine("megrajzolható");
                }
                else if(d < c)
                {
                    Console.WriteLine("nem megrajzolható");
                }
            }
        }
    }

Új hozzászólás Aktív témák