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;
- namespace ConsoleApplication35
- {
- class Program
- {
- static int n = 0;
- static Random rnd = new Random();
- static void Main(string[] args)
- {
- int [] t = new int [n];
- int[] a = new int[20];
- beker();
- feltolt1(t,10,99);
- kiir(t);
- Console.ReadLine();
- }
- static void beker()
- {
- n = int.Parse(Console.ReadLine());
- }
- static void feltolt1(int[] t, int a, int f)
- {
- for (int i = 0; i < t.Length; i++)
- {
- t[i] = rnd.Next(a, f);
- }
- }
- static void kiir(int [] t)
- {
- foreach (int q in t)
- {
- Console.WriteLine("{0}, ", q);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement