Advertisement
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;
- using System.Threading.Tasks;
- namespace ConsoleApp20
- {
- class Program
- {
- static void Main(string[] args)
- {
- //Skapa vektor
- int[] brojevi = new int[10];
- for (int i = 0; i < 10; i++) ;
- Console.WriteLine("Skrev en helltal mellan 1 och 25");
- string giss = Console.ReadLine();
- brojevi [i] = Convert.ToInt32(giss);
- if (brojevi[i] < 1 || brojevi[i] > 25)
- {
- Console.WriteLine("Fel! Tal är inte mellan 1 och 25!");
- i--;
- }
- //Finns matchning?
- //kolla för matchning
- // Random randomerare = new Random();
- // int slump_tal = randomerare.Next(1, 25);
- // int giss1;
- //for (brojevi[i] != slump_tal);
- // Console.WriteLine("Din kombinationen är:" + brojevi[i]);
- // Console.WriteLine("Grattis!");
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement