Advertisement
Feni_Moore

help

May 28th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.97 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.IO;
  7.  
  8. namespace num3
  9. {
  10.     class Program
  11.     {
  12.         static void Main(string[] args)
  13.         {
  14.             string[] s;
  15.             int i = 0;
  16.             s = File.ReadAllLines(@"out.txt");
  17.             foreach (string a in s)
  18.             {
  19.                 char[] b = a.ToCharArray();
  20.                 char c = Convert.ToChar(" ");
  21.                 try
  22.                 {
  23.                     if (b[6] != c)
  24.                     {
  25.                         for (int j = 0; j < 5; j++)
  26.                         {
  27.                             if (b[j] == c)
  28.                                 if (j == 4) i++;
  29.                             else break;
  30.                         }
  31.                     }
  32.                 }
  33.                 catch { }
  34.             }
  35.             Console.WriteLine(i);
  36.             Console.ReadKey();
  37.         }
  38.     }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement