using System using System IO namespace Lab7 class Program static void

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
using System;
using System.IO;
namespace Lab7 {
class Program {
static void Main(string[] args) {
byte[] bytes = File.ReadAllBytes("Lab7.exe");
long result = 0;
foreach (byte b in bytes)
result += b;
Console.WriteLine(result);
Console.ReadKey();
}
}
}