Código:
Imports system.console
Module module1
Sub main()
Dim dia As Integer
Dim mes As String
Dim feberror As Integer = 29
Const horoaries As String = "hoy tendrás un gran día"
Const horotauro As String = "hoy tendrás un gran día"
Const horogeminis As String = "hoy tendrás un gran día"
Const horocancer As String = "hoy tendrás un gran día"
Const horoleo As String = "hoy tendrás un gran día"
Const horovirgo As String = "hoy tendrás un gran día"
Const horolibra As String = "hoy tendrás un gran día"
Const horoescorpio As String = "hoy tendrás un gran día"
Const horosagitario As String = "hoy tendrás un gran día"
Const horocapricornio As String = "hoy tendrás un gran día"
Const horoacuario As String = "hoy tendrás un gran día"
Const horopiscis As String = "hoy tendrás un gran día"
Writeline("Por favor, ingrese el dia de nacimiento")
Dia = readline()
If dia = (dia < 1) Or (dia > 31) Then
WriteLine("Error, los meses solo contienen dias entre 1 y 31")
ReadLine()
Else
WriteLine("Ahora ingrese el mes de nacimiento")
mes = ReadLine()
If mes = ("febrero") And (dia > 29) Then
WriteLine("Oh, Oh!!!, febrero no tiene " & dia & " días, se le asignará 29 como valor")
ReadLine()
dia = 29
Else
End If
mes = UCase(mes)
Select Case mes
Case "ENERO"
If dia < 21 Then
WriteLine("CAPRICORNIO " & horocapricornio)
ReadLine()
Else : WriteLine("ACUARIO " & horoacuario)
ReadLine()
End If
Case "FEBRERO"
If dia < 20 Then
WriteLine("ACUARIO " & horoacuario)
ReadLine()
Else : WriteLine("PISCIS " & horopiscis)
ReadLine()
End If
Case "MARZO"
If dia < 21 Then
WriteLine("PISCIS " & horopiscis)
ReadLine()
Else : WriteLine("ARIES " & horoaries)
ReadLine()
End If
Case "ABRIL"
If dia < 21 Then
WriteLine("ARIES " & horoaries)
ReadLine()
Else : WriteLine("TAURO " & horotauro)
ReadLine()
End If
Case "MAYO"
If dia < 21 Then
WriteLine("TAURO " & horotauro)
ReadLine()
Else : WriteLine("GEMINIS " & horogeminis)
ReadLine()
End If
Case "JUNIO"
If dia < 21 Then
WriteLine("GEMINIS " & horogeminis)
ReadLine()
Else : WriteLine("CANCER " & horocancer)
ReadLine()
End If
Case "JULIO"
If dia < 24 Then
WriteLine("CANCER " & horocancer)
ReadLine()
Else : WriteLine("LEO " & horoleo)
ReadLine()
End If
Case "AGOSTO"
If dia < 24 Then
WriteLine("LEO " & horoleo)
ReadLine()
Else : WriteLine("VIRGO " & horovirgo)
ReadLine()
End If
Case "SETIEMBRE"
If dia < 24 Then
WriteLine("VIRGO " & horovirgo)
ReadLine()
Else : WriteLine("LIBRA " & horolibra)
ReadLine()
End If
Case "OCTUBRE"
If dia < 24 Then
WriteLine("LIBRA " & horolibra)
ReadLine()
Else : WriteLine("ESCORPIO " & horoescorpio)
ReadLine()
End If
Case "NOVIEMBRE"
If dia < 22 Then
WriteLine("ESCORPIO " & horoescorpio)
ReadLine()
Else : WriteLine("SAGITARIO " & horosagitario)
ReadLine()
End If
Case "DICIEMBRE"
If dia < 22 Then
WriteLine("SAGITARIO " & horosagitario)
ReadLine()
Else : WriteLine("CAPRICORNIO " & horocapricornio)
ReadLine()
End If
Case Else
Write("Oh, oh!!!, ... Ha ocurrido un error los datos ingresados no son válidos")
ReadLine()
End Select
End If
End Sub
End Module
Module module1
Sub main()
Dim dia As Integer
Dim mes As String
Dim feberror As Integer = 29
Const horoaries As String = "hoy tendrás un gran día"
Const horotauro As String = "hoy tendrás un gran día"
Const horogeminis As String = "hoy tendrás un gran día"
Const horocancer As String = "hoy tendrás un gran día"
Const horoleo As String = "hoy tendrás un gran día"
Const horovirgo As String = "hoy tendrás un gran día"
Const horolibra As String = "hoy tendrás un gran día"
Const horoescorpio As String = "hoy tendrás un gran día"
Const horosagitario As String = "hoy tendrás un gran día"
Const horocapricornio As String = "hoy tendrás un gran día"
Const horoacuario As String = "hoy tendrás un gran día"
Const horopiscis As String = "hoy tendrás un gran día"
Writeline("Por favor, ingrese el dia de nacimiento")
Dia = readline()
If dia = (dia < 1) Or (dia > 31) Then
WriteLine("Error, los meses solo contienen dias entre 1 y 31")
ReadLine()
Else
WriteLine("Ahora ingrese el mes de nacimiento")
mes = ReadLine()
If mes = ("febrero") And (dia > 29) Then
WriteLine("Oh, Oh!!!, febrero no tiene " & dia & " días, se le asignará 29 como valor")
ReadLine()
dia = 29
Else
End If
mes = UCase(mes)
Select Case mes
Case "ENERO"
If dia < 21 Then
WriteLine("CAPRICORNIO " & horocapricornio)
ReadLine()
Else : WriteLine("ACUARIO " & horoacuario)
ReadLine()
End If
Case "FEBRERO"
If dia < 20 Then
WriteLine("ACUARIO " & horoacuario)
ReadLine()
Else : WriteLine("PISCIS " & horopiscis)
ReadLine()
End If
Case "MARZO"
If dia < 21 Then
WriteLine("PISCIS " & horopiscis)
ReadLine()
Else : WriteLine("ARIES " & horoaries)
ReadLine()
End If
Case "ABRIL"
If dia < 21 Then
WriteLine("ARIES " & horoaries)
ReadLine()
Else : WriteLine("TAURO " & horotauro)
ReadLine()
End If
Case "MAYO"
If dia < 21 Then
WriteLine("TAURO " & horotauro)
ReadLine()
Else : WriteLine("GEMINIS " & horogeminis)
ReadLine()
End If
Case "JUNIO"
If dia < 21 Then
WriteLine("GEMINIS " & horogeminis)
ReadLine()
Else : WriteLine("CANCER " & horocancer)
ReadLine()
End If
Case "JULIO"
If dia < 24 Then
WriteLine("CANCER " & horocancer)
ReadLine()
Else : WriteLine("LEO " & horoleo)
ReadLine()
End If
Case "AGOSTO"
If dia < 24 Then
WriteLine("LEO " & horoleo)
ReadLine()
Else : WriteLine("VIRGO " & horovirgo)
ReadLine()
End If
Case "SETIEMBRE"
If dia < 24 Then
WriteLine("VIRGO " & horovirgo)
ReadLine()
Else : WriteLine("LIBRA " & horolibra)
ReadLine()
End If
Case "OCTUBRE"
If dia < 24 Then
WriteLine("LIBRA " & horolibra)
ReadLine()
Else : WriteLine("ESCORPIO " & horoescorpio)
ReadLine()
End If
Case "NOVIEMBRE"
If dia < 22 Then
WriteLine("ESCORPIO " & horoescorpio)
ReadLine()
Else : WriteLine("SAGITARIO " & horosagitario)
ReadLine()
End If
Case "DICIEMBRE"
If dia < 22 Then
WriteLine("SAGITARIO " & horosagitario)
ReadLine()
Else : WriteLine("CAPRICORNIO " & horocapricornio)
ReadLine()
End If
Case Else
Write("Oh, oh!!!, ... Ha ocurrido un error los datos ingresados no son válidos")
ReadLine()
End Select
End If
End Sub
End Module










Autor


En línea



Entonces... no dije nada...
Es verdad lo que dices, pero yo pensé que habias presentado de esa manera el programa.