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(); } } }