SHOW:
|
|
- or go back to the newest paste.
| 1 | - | using System; |
| 1 | + | for (i = 0; i < n - 1; i++) |
| 2 | - | using System.Collections.Generic; |
| 2 | + | {
|
| 3 | - | using System.Linq; using System.Text; |
| 3 | + | for (j = 0; j < n - 1; j++) |
| 4 | - | using System.IO; using Tao.FreeGlut; |
| 4 | + | {
|
| 5 | - | using Tao.OpenGl; |
| 5 | + | if (i == j) |
| 6 | - | |
| 6 | + | continue; |
| 7 | - | namespace Rabota {
|
| 7 | + | for (k = 0; k < n - 1; k++) |
| 8 | - | class Program {
|
| 8 | + | {
|
| 9 | - | static void Main(string[] args) |
| 9 | + | if ((i == k) || (j == k)) |
| 10 | - | {
|
| 10 | + | continue; |
| 11 | - | float[] x; |
| 11 | + | a = Math.Abs(x[i] - x[k]); |
| 12 | - | float[] y; |
| 12 | + | b = Math.Abs(x[j] - x[n]); |
| 13 | - | int i, j, k, n=10; |
| 13 | + | c = Math.Sqrt((x[j] - x[i]) * (x[j] - x[i]) + (y[j] - y[i]) * (y[j] - y[i])); |
| 14 | - | string line; |
| 14 | + | d = Math.Sqrt((x[n] - x[k]) * (x[n] - x[k]) + (y[n] - y[k]) * (y[n] - y[k])); |