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;
- namespace ConsoleApplication1
- {
- class Program
- {
- static void Main(string[] args)
- {
- bool ok = true;
- int zugi = 0, izugi = 0;
- int[] sum = new int[6];
- for (int i = 0; i < 6; i++)
- {
- sum[i] = int.Parse(Console.ReadLine());
- }
- for (int i = 0; i < 6; i++)
- {
- if (i % 2 == 0)
- {
- zugi += sum[i];
- }
- else
- {
- izugi += sum[i];
- }
- }
- if (izugi != zugi)
- ok = false;
- Console.Write(ok);
- Console.ReadLine();
- }
- }
- }
Add Comment
Please, Sign In to add comment