-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
31 lines (30 loc) · 1.01 KB
/
Copy pathProgram.cs
File metadata and controls
31 lines (30 loc) · 1.01 KB
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
namespace QuizzApp
{
internal class Program
{
static void Main(string[] args)
{
var questions = new Question[]
{
new Question(
"What is the capital of Germany?", //question
new string[] {"Paris", "Berlin", "London", "Madrid"}, //answers
1 // index of the correct answers
),
new Question(
"What is 1 * 2?", //question
new string[] {"1", "3", "2", "0"}, //answers
2 // index of the correct answers
),
new Question(
"Who wrote Hamblet", //question
new string[] {"Shakespeare", "Goethe", "Dickens", "Chaikovsky"}, //answers
0 // index of the correct answers
)
};
var myQuiz = new Quizz(questions);
myQuiz.StartQuiz();
Console.ReadLine();
}
}
}