23 lines
409 B
C#
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}");
|
|
}
|
|
}
|
|
}
|