Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as C# by tymbarkus ( 14 years ago )
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace kolo_przykladowe6
{
class Program
{
static void Main(string[] args)
{
Console.Write("Podaj liczbe wierszy: ");
int liczba_wierszy;
liczba_wierszy = Convert.ToInt16(Console.Read());
string[] rozdzielony_wiersz;
string wiersz;
int[][] tablica_jagged=new int[liczba_wierszy][];
for (int i=0; i<liczba_wierszy; i++)
{
Console.WriteLine("Podaj liczby, oddzielajac je spacjami");
wiersz=Convert.ToString(Console.Read());
rozdziel Char[] {' '});
tablica_jagged[i]=new int[rozdzielony_wiersz.Length];
for (int k=0; k<rozdzielony_wiersz.Length; k++)
tablica_jagged[i][k]=Convert.ToInt32(rozdzielony_wiersz[k]);
}
}
}
}
Revise this Paste