fork download
  1. textBox3.Text="";
  2. textBox4.Text="";
  3. textBox6.Text="";
  4. double[,] mas = new double[100, 100];
  5. int m = Convert.ToInt32(textBox1.Text), n = Convert.ToInt32(textBox2.Text);
  6. Random a = new Random();
  7. for (int i = 0; i < m; i++)
  8. {
  9. for (int j = 0; j < n; j++)
  10. {
  11. mas[i, j] = a.Next(10);
  12. textBox3.Text = textBox3.Text + Convert.ToString(mas[i, j]) + " ";
  13. }
  14. textBox3.Text = textBox3.Text + System.Environment.NewLine;
  15. }
  16.  
  17. for (int i = 1; i < m; ++i)
  18. {
  19. for (int k = i; k < m; ++k)
  20. {
  21. for (int j = m - 1; j >= 0; --j)
  22. {
  23. mas[k, j] -= mas[k, i - 1] / mas[i - 1, i - 1] * mas[i - 1, j];
  24. }
  25. }
  26.  
  27. }
  28. for (int i = 0; i < m; i++)
  29. {
  30. for (int j = 0; j < n; j++)
  31. {
  32.  
  33. textBox4.Text = textBox4.Text + Convert.ToString(mas[i, j]) + " ";
  34. }
  35. textBox4.Text = textBox4.Text + System.Environment.NewLine;
  36.  
  37. }
  38. int r,h=0;
  39. double p = 0;
  40. r = Convert.ToInt32(textBox5.Text);
  41. for (int i = 0; i < m; i++)
  42. {
  43. for (int j = 0; j < n; j++)
  44. {
  45. p += mas[i, j];
  46. }
  47. p /= n;
  48. if (p < r) h++;
  49. }
  50. textBox6.Text = Convert.ToString(h);
  51.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(1,1): error CS1525: Unexpected symbol `textBox3'
prog.cs(4,19): warning CS0658: `,' is invalid attribute target. All attributes in this attribute section will be ignored
prog.cs(51,13): error CS8025: Parsing error
Compilation failed: 2 error(s), 1 warnings
stdout
Standard output is empty