static float[] storedValues = new float[20];
public static void Main() {
while (conditionCheck() == false) {
Console.WriteLine("Kesz, termsinalas. ");
public static bool conditionCheck() {
for (int i = 0; i < storedValues.Length; i++) {
if (storedValues[i] < 0) negativeCount++;
if (storedValues[i] > 0) positiveCount++;
Console.WriteLine("State: " + positiveCount + " " + negativeCount);
return positiveCount + negativeCount >= 10;
public static void readNewInput() {
Console.WriteLine("Kerem a kovetkezo szamot: ");
var result = Console.ReadLine();
var resultAsFloat = float.Parse(result);
storedValues[current] = resultAsFloat;
Console.WriteLine("Nem szam hiba>" + e.ToString());