Professional Documents
Culture Documents
Sub Main()
Dim x, y, m, t, n, c, d As String
m = "dia"
t = "tarde"
n = "noche"
c = "caballero"
d = "dama"
If x = "m" Then
Console.WriteLine("dia")
ElseIf x = "t" Then
Console.WriteLine("tarde")
ElseIf x = "n" Then
Console.WriteLine("noche")
End If
Console.WriteLine("introduzca su parentezco")
y = Console.ReadLine()
If y = "c" Then
Console.WriteLine("caballero")
End If
Console.ReadKey()
End Sub
Ejercicio 1
Sub Main()
Dim n As Integer
Console.WriteLine("introduzca un numero")
n = Console.ReadLine()
Console.ReadKey()
End Sub