Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //easy question
- int[] points = new int[questions.Length / 2];
- int k = 0;
- for (int i = 1; i < questions.Length; i += 2)
- {
- string[] tmp = questions[i].Split(':');
- points[k] = Convert.ToInt32(tmp[0]);
- k++;
- }
- int minq = 100;
- for (int i = 0; i < points.Length; i++)
- {
- if (points[i] < minq)
- {
- minq = points[i];
- }
- }
- string minq_str = minq.ToString();
- int numq = 1;
- for (int i = 1; i < questions.Length; i += 2)
- {
- string[] tmp = questions[i].Split(':');
- string asnq = tmp[1].Substring(tmp[1].IndexOf('('));
- asnq = asnq.Substring(1, asnq.Length - 2);
- if (tmp[0] == minq_str)
- {
- label9.Text = "№" + numq + ":" + asnq;
- }
- numq++;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement