Question
Keep getting two errors? How Do I fix my cocde? Visual Studio C# Exspected CS1002 Expected CS 1513 using System; namespace Quiz { class MainClass
Keep getting two errors?
How Do I fix my cocde?
Visual Studio C#
Exspected CS1002
Expected CS 1513
using System;
namespace Quiz { class MainClass { public static void Main(string[] args) {
Console.WriteLine("Welcome to the Quiz!"); Console.WriteLine("--------------------------------"); Console.WriteLine(" ");
//Questions //declaring questions array var[] Question = new var[10]; Question[1] = "1. How many trees in a forest?"; Question[2] = "2. Sample Question"; Question[3] = "3. Sample Question"; Question[4] = "4. Sample Question"; Question[5] = "5. Sample Question"; Question[6]= "6. Sample Question"; Question[7] = "7. Sample Question"; Question[8] = "8. Sample Question"; Question[9] = "9. Sample Question"; Question[10] = "10. Sample Question";
//for option //declaring options 2d array var[] options= new var[10,4]{ {"3","4","5","6"},//for question1 {"3","4","5","6"},//for question2 {"3","4","5","6"},//for question3
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started