Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.IO;
- namespace num3
- {
- class Program
- {
- static void Main(string[] args)
- {
- string[] s;
- int i = 0;
- s = File.ReadAllLines(@"out.txt");
- foreach (string a in s)
- {
- char[] b = a.ToCharArray();
- char c = Convert.ToChar(" ");
- try
- {
- if (b[6] != c)
- {
- for (int j = 0; j < 5; j++)
- {
- if (b[j] == c)
- if (j == 4) i++;
- else break;
- }
- }
- }
- catch { }
- }
- Console.WriteLine(i);
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement