Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int[] tab1 = new int[10];
- int[] tab2 = new int[10];
- for (int i = 0; i <10; i++)
- {
- Console.WriteLine("Proszę podać liczby");
- tab1[i] = int.Parse(Console.ReadLine());
- if (tab1[i] > 0)
- {
- tab1.CopyTo(tab2, tab1[i]);
- for (int j=0; j < 10; j++)
- {
- Console.WriteLine(tab2[i] + ", ");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement