using System;
namespace Program_program
{
class Co_kolwiek
{
public int cc;
public int[] iDane;
public void Dzialanie()
{
int cc = new int ();
int[] iDane = new int[4];
for (int a=0;a<iDane.Length;a++)
{
cc=cc+10;
iDane[a]=cc;
Console.WriteLine("{0}", iDane[a]);
}
}
}
public class Program
{
static void Main(string[] args)
{
Co_kolwiek tablica = new Co_kolwiek();
tablica.Dzialanie();
Console.WriteLine ("{0}",tablica); ???
Console.ReadKey();
}
}
}
Za pomocą jakiej komendy w pętli głównej odczytać np. wartość z iDane[0];