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 zad3lancuchy
- {
- class Program
- {
- static void Main(string[] args)
- {
- Random rnd = new Random();
- Console.WriteLine("Podaj liczbę elementów tablicy: ");
- int ile = int.Parse(Console.ReadLine());
- double[] tab1 = new double[ile];
- for (int i = 0; i < tab1.Length; i++)
- {
- tab1[i] = rnd.Next(100, 201) / 10.00;
- }
- string s1 = string.Join("|", tab1);
- string s2 = s1.Replace(',', '.');
- Console.WriteLine(s2);
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement