Files
c-sharp/Listak/Program.cs

27 lines
620 B
C#
Raw Permalink Normal View History

2022-04-05 17:24:42 +02:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Listak {
internal class Program {
static void Main(string[] args) {
List<int> szamok = new List<int>();
Random random = new Random();
2022-04-07 14:58:49 +02:00
ulong darab = Convert.ToUInt64(Console.ReadLine());
2022-04-05 17:24:42 +02:00
2022-04-07 14:58:49 +02:00
for (ulong i = 0; i < darab; i++) {
2022-04-05 17:24:42 +02:00
szamok.Add(random.Next(10, 100));
}
foreach(int i in szamok) {
Console.WriteLine(i);
}
Console.ReadKey();
}
}
}