-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAddQuestion.cs
34 lines (27 loc) · 989 Bytes
/
AddQuestion.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using System.Collections;
public class AddQuestion
{
public static void QuestionsAdd(ref string[][] quiz, ref int start, ref int end)
{
char letter = 'A';
for (var i = start; i < end; i++)
{
int j = 0;
Console.WriteLine($"Savolni kiritng :");
quiz[i] = new string[6];
quiz[i][j++%6] = Console.ReadLine()!;
Console.WriteLine($"T j indeksini kirting :");
quiz[i][j++%6] = Console.ReadLine()!;
Console.WriteLine($"Variantlarni kiriting");
for (var k = 0; k < 4; k++)
{
Console.Write($"{letter++} )");
if(letter == 'E')
letter = 'A';
quiz[i][j++%6] = Console.ReadLine()!;
}
}
start = end;
end = quiz.Length;
}
}