Files
TeglalapObjektum/TeglalapObjektum/Teglalap.cs
2023-02-10 18:57:31 +01:00

23 lines
409 B
C#

using System;
using System.Collections.Generic;
using System.Text;
namespace TeglalapObjektum
{
class Teglalap
{
public double aoldal;
public double boldal;
public double terulet()
{
return aoldal * boldal;
}
public void kiir()
{
Console.WriteLine($"a: {aoldal}, b: {boldal}, T: {terulet():F3}");
}
}
}