Advertisement
statheist

Untitled

Dec 23rd, 2021
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.61 KB | None | 0 0
  1. private void button1_Click(object sender, EventArgs e)
  2.         {
  3.            
  4.             int[] A = new int[12];
  5.             Random rnd = new Random();
  6.             for (int t = 0; t < 12; t++)
  7.             {
  8.                 A[t]=(rnd.Next(-100, 100));
  9.                 textBox1.Text += String.Format("{0}", A[t]) + "   ";
  10.             }
  11.             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] };
  12.  
  13.             textBox1.Text += String.Format("\r\n");
  14.  
  15.             for (int t = 0; t < 12; t++) textBox1.Text += String.Format("{0}", B[t]) + "   ";
  16.            
  17.  
  18.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement