Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace App
- {
- class Program
- {
- public static bool IsNumFound(int[,] arr, int n)
- {
- for (int i = 0; i < arr.GetLength(0); i++)
- {
- for (int k = 0; k < arr.GetLength(1); k++)
- if (arr[i, k] == n)
- return true;
- }
- return false;
- }
- static void Main()
- {
- int n = 10, a = 0, num = 1;
- int[,] lottory = new int[3, 3];
- for (int i = 0; i < lottory.GetLength(0); i++)
- {
- for (int k = 0; k < lottory.GetLength(1); k++)
- lottory[i, k] = int.Parse(Console.ReadLine());
- }
- while (a < lottory.GetLength(1))
- {
- num++;
- while (IsNumFound(lottory, num))
- num++;
- Console.Write(num + " ");
- a++;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment