-
Lenguaje
Visual Basic .Net
-
Descripción
Permite leer la fecha de nacimiento de una persona (fecha válida), e indica su signo zodiacal acompañado del horóscopo.
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
Module SignoZodiacalYHoroscopo
Sub Main()
Dim dia, mes As Integer
Console.Write("Ingresa el valor de dia: ")
dia = Integer.Parse(Console.ReadLine())
Console.Write("Ingresa el valor de mes: ")
mes = Integer.Parse(Console.ReadLine())
If (dia>=21 And mes = 3) Or (dia<=20 And mes = 4) Then
Console.WriteLine("Signo: Aries")
Console.WriteLine("Hor" & ChrW(&HF3) & "scopo: Escribe el hor" & ChrW(&HF3) & "scopo aqu" & ChrW(&HED) & ".")
End If
If (dia>=24 And mes = 9) Or (dia<=23 And mes = 10) Then
Console.WriteLine("Signo: Libra")
Console.WriteLine("Hor" & ChrW(&HF3) & "scopo: Escribe el hor" & ChrW(&HF3) & "scopo aqu" & ChrW(&HED) & ".")
End If
If (dia>=21 And mes = 4) Or (dia<=21 And mes = 5) Then
Console.WriteLine("Signo: Tauro")
Console.WriteLine("Hor" & ChrW(&HF3) & "scopo: Escribe el hor" & ChrW(&HF3) & "scopo aqu" & ChrW(&HED) & ".")
End If
If (dia>=24 And mes = 10) Or (dia<=22 And mes = 11) Then
Console.WriteLine("Signo: Escorpio")
Console.WriteLine("Hor" & ChrW(&HF3) & "scopo: Escribe el hor" & ChrW(&HF3) & "scopo aqu" & ChrW(&HED) & ".")
End If
If (dia>=22 And mes = 5) Or (dia<=21 And mes = 6) Then
Console.WriteLine("Signo: Geminis")
Console.WriteLine("Hor" & ChrW(&HF3) & "scopo: Escribe el hor" & ChrW(&HF3) & "scopo aqu" & ChrW(&HED) & ".")
End If
If (dia>=23 And mes = 11) Or (dia<=21 And mes = 12) Then
Console.WriteLine("Signo: Sagitario")
Console.WriteLine("Hor" & ChrW(&HF3) & "scopo: Escribe el hor" & ChrW(&HF3) & "scopo aqu" & ChrW(&HED) & ".")
End If
If (dia>=21 And mes = 6) Or (dia<=23 And mes = 7) Then
Console.WriteLine("Signo: Cancer")
Console.WriteLine("Hor" & ChrW(&HF3) & "scopo: Escribe el hor" & ChrW(&HF3) & "scopo aqu" & ChrW(&HED) & ".")
End If
If (dia>=22 And mes = 12) Or (dia<=20 And mes = 1) Then
Console.WriteLine("Signo: Capricornio")
Console.WriteLine("Hor" & ChrW(&HF3) & "scopo: Escribe el hor" & ChrW(&HF3) & "scopo aqu" & ChrW(&HED) & ".")
End If
If (dia>=24 And mes = 7) Or (dia<=23 And mes = 8) Then
Console.WriteLine("Signo: Leo")
Console.WriteLine("Hor" & ChrW(&HF3) & "scopo: Escribe el hor" & ChrW(&HF3) & "scopo aqu" & ChrW(&HED) & ".")
End If
If (dia>=21 And mes = 1) Or (dia<=19 And mes = 2) Then
Console.WriteLine("Signo: Acuario")
Console.WriteLine("Hor" & ChrW(&HF3) & "scopo: Escribe el hor" & ChrW(&HF3) & "scopo aqu" & ChrW(&HED) & ".")
End If
If (dia>=24 And mes = 8) Or (dia<=23 And mes = 9) Then
Console.WriteLine("Signo: Virgo")
Console.WriteLine("Hor" & ChrW(&HF3) & "scopo: Escribe el hor" & ChrW(&HF3) & "scopo aqu" & ChrW(&HED) & ".")
End If
If (dia>=20 And mes = 2) Or (dia<=20 And mes = 3) Then
Console.WriteLine("Signo: Piscis")
Console.WriteLine("Hor" & ChrW(&HF3) & "scopo: Escribe el hor" & ChrW(&HF3) & "scopo aqu" & ChrW(&HED) & ".")
End If
Console.WriteLine()
Shell ("cmd /c pause", AppWinStyle.NormalFocus, True)
End Sub
End Module
Sub Main()
Dim dia, mes As Integer
Console.Write("Ingresa el valor de dia: ")
dia = Integer.Parse(Console.ReadLine())
Console.Write("Ingresa el valor de mes: ")
mes = Integer.Parse(Console.ReadLine())
If (dia>=21 And mes = 3) Or (dia<=20 And mes = 4) Then
Console.WriteLine("Signo: Aries")
Console.WriteLine("Hor" & ChrW(&HF3) & "scopo: Escribe el hor" & ChrW(&HF3) & "scopo aqu" & ChrW(&HED) & ".")
End If
If (dia>=24 And mes = 9) Or (dia<=23 And mes = 10) Then
Console.WriteLine("Signo: Libra")
Console.WriteLine("Hor" & ChrW(&HF3) & "scopo: Escribe el hor" & ChrW(&HF3) & "scopo aqu" & ChrW(&HED) & ".")
End If
If (dia>=21 And mes = 4) Or (dia<=21 And mes = 5) Then
Console.WriteLine("Signo: Tauro")
Console.WriteLine("Hor" & ChrW(&HF3) & "scopo: Escribe el hor" & ChrW(&HF3) & "scopo aqu" & ChrW(&HED) & ".")
End If
If (dia>=24 And mes = 10) Or (dia<=22 And mes = 11) Then
Console.WriteLine("Signo: Escorpio")
Console.WriteLine("Hor" & ChrW(&HF3) & "scopo: Escribe el hor" & ChrW(&HF3) & "scopo aqu" & ChrW(&HED) & ".")
End If
If (dia>=22 And mes = 5) Or (dia<=21 And mes = 6) Then
Console.WriteLine("Signo: Geminis")
Console.WriteLine("Hor" & ChrW(&HF3) & "scopo: Escribe el hor" & ChrW(&HF3) & "scopo aqu" & ChrW(&HED) & ".")
End If
If (dia>=23 And mes = 11) Or (dia<=21 And mes = 12) Then
Console.WriteLine("Signo: Sagitario")
Console.WriteLine("Hor" & ChrW(&HF3) & "scopo: Escribe el hor" & ChrW(&HF3) & "scopo aqu" & ChrW(&HED) & ".")
End If
If (dia>=21 And mes = 6) Or (dia<=23 And mes = 7) Then
Console.WriteLine("Signo: Cancer")
Console.WriteLine("Hor" & ChrW(&HF3) & "scopo: Escribe el hor" & ChrW(&HF3) & "scopo aqu" & ChrW(&HED) & ".")
End If
If (dia>=22 And mes = 12) Or (dia<=20 And mes = 1) Then
Console.WriteLine("Signo: Capricornio")
Console.WriteLine("Hor" & ChrW(&HF3) & "scopo: Escribe el hor" & ChrW(&HF3) & "scopo aqu" & ChrW(&HED) & ".")
End If
If (dia>=24 And mes = 7) Or (dia<=23 And mes = 8) Then
Console.WriteLine("Signo: Leo")
Console.WriteLine("Hor" & ChrW(&HF3) & "scopo: Escribe el hor" & ChrW(&HF3) & "scopo aqu" & ChrW(&HED) & ".")
End If
If (dia>=21 And mes = 1) Or (dia<=19 And mes = 2) Then
Console.WriteLine("Signo: Acuario")
Console.WriteLine("Hor" & ChrW(&HF3) & "scopo: Escribe el hor" & ChrW(&HF3) & "scopo aqu" & ChrW(&HED) & ".")
End If
If (dia>=24 And mes = 8) Or (dia<=23 And mes = 9) Then
Console.WriteLine("Signo: Virgo")
Console.WriteLine("Hor" & ChrW(&HF3) & "scopo: Escribe el hor" & ChrW(&HF3) & "scopo aqu" & ChrW(&HED) & ".")
End If
If (dia>=20 And mes = 2) Or (dia<=20 And mes = 3) Then
Console.WriteLine("Signo: Piscis")
Console.WriteLine("Hor" & ChrW(&HF3) & "scopo: Escribe el hor" & ChrW(&HF3) & "scopo aqu" & ChrW(&HED) & ".")
End If
Console.WriteLine()
Shell ("cmd /c pause", AppWinStyle.NormalFocus, True)
End Sub
End Module