UNIDAD 3
Actividad 1 Operaciones Aritméticas ejemplo "Hola" Sub op_aritmetico() Cells(1, 1) = "hola" Range("B2") = "Tu" Range("A2:A5") = " Hola UwU" End Sub Actividad 2 Aritméticas "Suma, resta,multiplicación, división y producto" Sub aritmeticas() Dim num1 As Integer Dim num2 As Integer num1 = 5 num2 = 7 Cells(1, 1) = num1 + num2 'suma Cells(1, 2) = "suma" Cells(2, 1) = num2 - num1 'resta Cells(2, 2) = "resta" Cells(3, 1) = num1 * num2 'multiplicacion Cells(3, 2) = "multiplicacion" Cells(4, 1) = num2 / num1 'division Cells(4, 2) = "Division" Cells(5, 1) = num1 ^ 2 'potencia Cells(5, 2) = "potencia" Cells(6, 1) = num2 \ num1 'division entera Cells(6, 2) = "Division entera" Cells(7, 1) = num2 Mod num1 'residuo Cells(7, 2) = "Residuo" End Sub Actividad 3 función lógicos Sub logicos() Dim n1 As Integer Dim n2 As Integer n1 = 5 ...