Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ConsoleApplication1
- {
- class Program
- {
- static void Main(string[] args)
- {
- Random rnd = new Random(); // missing
- int x;
- int[] array; // int array[] مصفوفة 1
- int i, j; // missing
- array = new int[6];
- x = rnd.Next(36); // x = Random.next(36);
- //{
- for (i = 0; i < 6; i++)
- { //for (i = 0; i < 6; i++)
- array[i] = rnd.Next(36); // Array[i] = random.next(36);
- }
- int[] a = new int[6]; // int a[] = new int[6]
- //{
- // for (j = 0; j < 6; j++) a[j] = Console.readline();
- for (j = 0; j < 6; j++)
- {
- a[j] = int.Parse(Console.ReadLine());
- }
- //}
- int count = 0; // count=0; {
- for (i = 0; i < 6; i++)
- {
- for (j = 0; j < 6; j++)
- {
- // check if the two numbers from both arrays are equal
- // increase counter only if booth numbers are the same
- count++;
- }
- }
- //console.writeline(" the number of numbers you chose right :" + count)
- Console.WriteLine(" the number of numbers you chose right :" + count); // missing ;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement