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 ConsoleApp16
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("Ilosc wierszy w tablicy postrzepionej:");
- int c = int.Parse(Console.ReadLine());
- int [][] tablica = new int[c][];
- for(int x = 0; x < c; x++)
- {
- Console.WriteLine("podaj ilosc elementow w tablicy{0}", x);
- int ele = int.Parse(Console.ReadLine());
- for (int g = 0; g < ele; g++)
- {
- Console.WriteLine("Podaj element tablicy:");
- tablica[x][g] = Convert.ToInt32(Console.ReadLine());
- }
- }
- for (int x = 0; x < tablica.Length; x++)
- {
- for (int xx = 0; xx < tablica[x].Length; xx++)
- {
- Console.Write(" " + tablica[x][xx]);
- }
- Console.WriteLine();
- }
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement