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[] sum = new int[5];
- for (int i = 0; i < 5; i++)
- {
- sum[i] = int.Parse(Console.ReadLine());
- }
- for (int i = 0; i < 3; i++)
- {
- if (sum[i] != sum[i + 1])
- {
- ok = false;
- }
- }
- Console.Write(ok);
- Console.ReadLine();
- }
- }
- }
Add Comment
Please, Sign In to add comment