- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
namespace CA1
{
class Program
{
static void Main()
{
int buffer;
int Cout = 0;
string line;
System.IO.StreamReader file = new System.IO.StreamReader("file.txt");
while ((line = file.ReadLine()) != null)
{
buffer = Convert.ToInt32(line);
if(buffer > 0)
{
if(buffer / 2 > 5 && buffer / 2 < 49.5)
{
Cout++;
}
}
if (buffer < 0)
{
if (buffer / 2 < - 5 && buffer / 2 > - 49.5)
{
Cout++;
}
}
}
Console.WriteLine(Cout);
Console.ReadLine();
}
}
}