Add project files.

This commit is contained in:
tothgergo
2026-10-05 09:25:33 +02:00
parent 0130779401
commit cf4d77eed0
13 changed files with 389 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Test261005Feladat
{
public class DataRecord
{
public string nev;
public int ertek;
public DataRecord(string adatsor)
{
try
{
nev = adatsor.Split(',')[0];
ertek = int.Parse(adatsor.Split(',')[1]);
}
catch (Exception err)
{
Console.WriteLine(err);
}
}
public int getSquaredValue()
{
return ertek*ertek;
}
public double multiplyValue(double szorzo)
{
return ertek*szorzo;
}
public bool isEven()
{
if (ertek%2 == 0)
{
return true;
}
else
{
return false;
}
}
}
}