Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace MasREpeat
- {
- class Program
- {
- static void Main(string[] args)
- {
- //int[] marks2 = { 12, 3, 5, 600, 989 };
- //for (int i = 0; i < marks2.Length; i++)
- //{
- // Console.WriteLine(marks2[i]);
- //}
- //string[] names = { "Am", "Andrii", "Ome" };
- //for (int i = 0; i < names.Length; i++)
- //{
- // //var index = Array.IndexOf(names, currentName);
- // //if (index == -1)
- // //{
- // // Console.WriteLine("Тебе не має");
- // // break;
- // //}
- //}
- int[,] grid = new int[5, 5];
- int currentPointW = int.Parse(Console.ReadLine());
- int currentPointH = int.Parse(Console.ReadLine());
- for (int i = 0; i < grid.GetLength(0); i++)
- {
- for (int j = 0; j < grid.GetLength(1); j++)
- {
- if(i == 4 && j == 2)
- {
- if(currentPointH == 2 && currentPointW == 4)
- {
- Console.WriteLine("Попав");
- }
- else
- {
- Console.WriteLine("не попав");
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment