编辑代码

Module Module1
'The#Const指令:该指令定义条件编译常量。
    #Const age = True
'The#ExternalSource指令:此指令用来指示特定行的源代码和源的外部文本之间的映射。
'The #If...Then...#Else 指令:此伪指令有条件地编译所选的Visual Basic代码块
    #Const classCode  = 8

    Sub Main()
        #If age Then
        Console.WriteLine("You are welcome to the Robotics Club")
        #End If
        #If classCode = 7 Then
            Console.WriteLine("Exam Questions for Class VII")
        #ElseIf classCode = 8 Then
            Console.WriteLine("Exam Questions foe Class VIII")
        #Else
            Console.WriteLine("Exam Questions foe Higher Classes")
        #End If
            Console.ReadKey()
        
    End Sub

End Module