Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void button1_Click(object sender, EventArgs e)
- {
- int[] A = new int[12];
- Random rnd = new Random();
- for (int t = 0; t < 12; t++)
- {
- A[t]=(rnd.Next(-100, 100));
- textBox1.Text += String.Format("{0}", A[t]) + " ";
- }
- int[] B = { A[0], A[11], A[1], A[10], A[2], A[9], A[3], A[8], A[4], A[7], A[5], A[6] };
- textBox1.Text += String.Format("\r\n");
- for (int t = 0; t < 12; t++) textBox1.Text += String.Format("{0}", B[t]) + " ";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement