This commit is contained in:
2022-06-07 13:52:04 +02:00
parent 90a869e261
commit 1bdf50c864
219 changed files with 2302 additions and 46 deletions

26
TermenyJoslas/Program.cs Normal file
View File

@@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TermenyJoslas {
internal class Program {
static void Main(string[] args) {
Console.WriteLine("Adja meg a termenyt tonnaban");
int termeny = Convert.ToInt32(Console.ReadLine());
Random random = new Random();
int szorzo = random.Next(5, 16);
int hozam = termeny * szorzo;
Console.WriteLine("Hozam: " + hozam);
if (szorzo >= 5 && szorzo <= 8) Console.WriteLine("Atlag alatti");
else if (szorzo >= 9 && szorzo <= 12) Console.WriteLine("Atlagos");
else if (szorzo >= 13 && szorzo <= 15) Console.WriteLine("Atlag feletti");
else Console.WriteLine("Hiba");
}
}
}