All pastes #923883 Raw Edit

Miscellany

public text v1 · immutable
#923883 ·published 2008-02-29 22:41 UTC
rendered paste body
Imports System.Text.RegularExpressions

Module Module1

    Sub Main()
        Console.WriteLine("#######                                   ")
        Console.WriteLine("   #      ##   #####   ####  ###### ##### ")
        Console.WriteLine("   #     #  #  #    # #    # #        #   ")
        Console.WriteLine("   #    #    # #    # #      #####    #   ")
        Console.WriteLine("   #    ###### #####  #  ### #        #   ")
        Console.WriteLine("   #    #    # #   #  #    # #        #   ")
        Console.WriteLine("   #    #    # #    #  ####  ######   #   ")

        Console.WriteLine(" #####                                     ")
        Console.WriteLine("#     # ###### ##### ##### # #    #  ####  ")
        Console.WriteLine("#       #        #     #   # ##   # #    # ")
        Console.WriteLine(" #####  #####    #     #   # # #  # #      ")
        Console.WriteLine("      # #        #     #   # #  # # #  ### ")
        Console.WriteLine("#     # #        #     #   # #   ## #    # ")
        Console.WriteLine(" #####  ######   #     #   # #    #  ####  ")
Beginning:
        Console.WriteLine("Welcome to the S.H Target Setting program. Type go to begin.")
        Dim start As String
        start = Console.ReadLine
        If start = "go" Then Console.WriteLine("Calculator starting. Please enter your total points, and then press enter.")
        If start = "go" Then
            Dim points As String = Console.ReadLine
            If Not Regex.IsMatch(points, "^\d+$") Then Console.WriteLine("Your amount of points must be an integer.")
            If Not Regex.IsMatch(points, "^\d+$") Then GoTo beginning
            If start = "go" Then Console.WriteLine("You have " & points & " points")
            Console.ReadLine()
        End If
    End Sub
End Module