**Mam referencje ... się skompilowało ale mnie nie pokroją błędy jakie debugger wykazuje , Proszę o poradę lub poprawkę ThX:)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Zadane_1
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Zadanie_na_lekcji
{
class Program /// Uzywac referencji / Bez użycia break
{
//Metoda główna
static void Main(string[] args)
{
Console.Write("Podaj Podstawe A= ");
int a = Convert.ToInt16(Console.ReadLine());
Console.Write("Podaj Podstawe B= ");
int b = Convert.ToInt16(Console.ReadLine());
Console.Write("Podaj Wysokość Trapezu H=");
int h = Convert.ToInt16(Console.ReadLine());
int pole = 0;
Console.WriteLine("Pole Trapezu to {0}", trapez());
Console.ReadKey();
}
//Metoda obliczająca pole trapezu
static int trapez(ref int pole, int a,int b, int h )
{
pole = (a + b)*(h/2);
}
}
}}