How to create an array with size that is passed through the textbox?
enter image description here
int massivSize = int.Parse(textBox1.Text);
int odnMassiv = new int[massivSize];
>Solution :
use int[] or var in declaration, like this:
int massivSize = int.Parse(textBox1.Text);
var odnMassiv = new int[massivSize];
or
int massivSize = int.Parse(textBox1.Text);
int[] odnMassiv = new int[massivSize];