TOPIC
Error20porcento
lneto27 asked 3 years ago
using System; using System.Collections.Generic;
namespace Exercicio1072 { class MainClass { public static void Main(string[] args) { List x = new List(); int N = Convert.ToInt32(Console.ReadLine()); int totin = 0; int toton = 0;
if (N < 1000)
{
for (int c = 0; c < N; c++)
{
int digito = Convert.ToInt32(Console.ReadLine());
x.Add(digito);
int lista = x[c];
if (lista >= 10 && lista <= 20)
{
totin++;
}
else
{
toton++;
}
}
}
Console.WriteLine(totin + " in");
Console.WriteLine(toton + " out");
}
}
}