You are on page 1of 2

Sub areadeuncirculo()

'
' areadeuncirculo Macro
'

'Dim Pi as Double
Cells(1, "a").Value = 9
Pi = 3.1416
Cells(1, "c").Value = Cells(1, "a").Value * Cells(1, "a").Value * Pi

End Sub
Sub areadeuntriangulo()
'
'desarrolle un algoritmo que permita calcular el area de un triangulo
'

'Dim b,h as integer


Cells(2, "a").Value = 9
Cells(2, "b").Value = 9
Cells(2, "c").Value = (Cells(2, "a").Value * Cells(2, "b").Value) / 2

End Sub
Sub comvertirsolesadolares()
'
' comvertirsolesadolares Macro
'

'Dim s,d as double


Cells(3, "a").Value = 250
Cells(3, "b").Value = 3.1
Cells(3, "c").Value = (Cells(3, "a").Value) / (Cells(3, "b").Value)

End Sub
Sub comvertirkilometrosametros()
'
' Dim k,m as integer
Cells(4, "a").Value = 20
Cells(4, "b").Value = 1000
Cells(4, "c").Value = (Cells(4, "a").Value) * (Cells(4, "b").Value)

End Sub
Sub convertirgradoscentigradosaferenheit()
'
' convertirgradoscentigradosaferenheit Macro
'

'Dim c as integer
Cells(5, "a").Value = 36
Cells(5, "c").Value = ((Cells(5, "a").Value) * 9) / 5 + 32

End Sub
Sub comvertircentimetrosametros()
'
' comvertircentimetrosametros Macro
'

'Dim cm,m as integer


Cells(6, "a").Value = 65
Cells(6, "b").Value = 1 / 100
Cells(6, "c").Value = (Cells(6, "a").Value) * (Cells(6, "b").Value)
End Sub
Sub comvertirpiesacentimetros()
'
' comvertirpiesacentimetros Macro
'

'Dim ft,cm as double


Cells(7, "a").Value = 50
Cells(7, "b").Value = 30.48
Cells(7, "c").Value = (Cells(7, "a").Value) * (Cells(7, "b").Value)
End Sub
Sub comvertirminutosahoras()
'
' comvertirminutosahoras Macro
'

'Dim min,h as integer


Cells(8, "a").Value = 100
Cells(8, "b").Value = 1 / 60
Cells(8, "c").Value = (Cells(8, "a").Value) * (Cells(8, "b").Value)

End Sub
Sub hallarvelocidad()
'
' hallarvelocidad Macro
'

'Dim di,min,h integer


Cells(9, "a").Value = 150
Cells(9, "b").Value = 280
Cells(9, "c").Value = 1 / 60
Cells(9, "d").Value = (Cells(9, "a").Value) / ((Cells(9, "b").Value) * Cells(9,
"c").Value)

End Sub
Sub areacircular()
'
' areacircular Macro
'

'Dim Pi as Double
Cells(10, "a").Value = 45
Pi = 3.1416
Cells(10, "c").Value = Cells(10, "a").Value * Cells(10, "a").Value * Pi

End Sub

You might also like