em có một mảng trong c# bây giờ em muốn nhập vào số phần từ cho từng mảng sau đó lại nhập từng phần tử vào mảng nhưng không được code của em đâu mong các bác chỉ giáo nha
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace nhiendo
{
class Program
{
static void Main(string[] args)
{
int[][] a = new int[4][];
int[]b = new int [4];
for(int i=0;i<4;i++)
{
Console.Write("moi cac ban nhap so phan tu cua mang :");
b[i] = Convert.ToInt16(Console.ReadLine());
}
for(int i=0;i<4;i++)
{
for(int j=0;j<b[i];j++)
{
Console.Write("moi cac ban nhap phan tu");
a[i][j] = Convert.ToInt16(Console.ReadLine());
}
}
}
}
}