Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (int h = 0; h < n; h++)
- {
- x1 = 0.05;
- for (int i = 0; i < n; i++)
- {
- x2 = 0.05;
- for (int j = 0; j < n; j++)
- {
- x3 = 0.05;
- for (int k = 0; k < n; k++)
- {
- x4 = 0.05;
- for (int l = 0; l < n; l++)
- {
- SUM = x1 + x2 + x3 + x4;
- if (SUM == 1.0)
- {
- mas.Add(x1.ToString() + " " + x2.ToString() + " " + x3.ToString() + " " + x4.ToString());
- }
- x4 += 0.05;
- }
- x3 += 0.05;
- }
- x2 += 0.05;
- }
- x1 += 0.05;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement