SlideShare una empresa de Scribd logo
1 de 3
 AREA DE UN TRIANGULO:
Private sub command_click( )
Din b , h As Integer
b = val (text1)
h = val (text2)
area = (b*h) / 2
text3.text = area
End sub

Private sub command_click ( )
Text1 = “ “
Text2 = “ “
Text3 = “ “
End sub

Private sub command_click ( )
End
End sub

 AREA DE UNA CIRCUNFERENCIA:
Private sub command_click ( )
Din R As Double
Din A As Double
R = Val (text1)
A = Val (text2)
Area = 3…14159265358979        *   (R *   R )
Text3.text =area
End sub
Private sub command2_click ( )
Din R As Double
Din A As Double
R = Val (text1)
A = Val (text2)
Longi = A * R
Text4.text = longi
End sub
Private sub command3_click ( )
End
End sub
 SUMA DE LOS 50 )PRIMEROS NUMEROS
NATURALES:
private sub command1_click ( )
Din R As DoubleP
If (R < 50 ) then

R = val (text1)
Suma = (R *(R + 1) ) / 2
Text2.text = suma
If (R > = 51 ) then
Text3.text =”este numero no esta permitido,pero la respuesta es:
“& suma
End If
End If
End sub

Private sub command2_click ( )
Text1 = “ “
Text2 = “ “
Text3 = “ “
End sub

Private sub command_click ( )
End
End sub

 REGLA DE TRES SINPLE::
Private sub command1_click ( )
Din a , b ,c As Double
a = val (text1)
b = val (text2)
c = val ( text3)
d=(c*b) /a
text4.text = d
End sub
Private sub command2_click ( )
End
End sub
 MOSTRAR LA EDAD EN LA PANTALLLA:
Private sub command1_click( )
E nd
End sub
Private sub command2_click ( )
Din E As Double
E = val (text1)
If (E < 0) then
Text2.text = “no pudes tener esa edad”
End If
If (E > 0) then
Text2.text = “ eres un(a) niño(a)”
End If
If (E > 10) then
Text2.text = “adolescente”
End If
If (E > 18 ) then
Text2.text = “como le va joven”
End If
If (E > 30 ) then
Text2.text = “eres todo un adulto”
End If
If (E >65 ) then
Text2.text = “abuelo”
End If
If (E > 100) then
Text2.text = “no puedes seguir vivo!!!”
End If
End sub

 SUMA DE LOS 100 PRIMEROS NUMEROS
   Impares:
Private sub command1_click ( )
Din n As Integer
n = val ( text1)
text2.text = IIf (n < = 100, (n * n), “no se puede”
End sub

Más contenido relacionado

La actualidad más candente

PyTrening 2.0 # 15 Okienka GUI
PyTrening 2.0 # 15 Okienka GUIPyTrening 2.0 # 15 Okienka GUI
PyTrening 2.0 # 15 Okienka GUIMoniaJ
 
Bloqueador cmd-sh
Bloqueador cmd-shBloqueador cmd-sh
Bloqueador cmd-shmsbertoldi
 
Codigo Fuente De Ejercicios De Gambas
Codigo Fuente De Ejercicios De GambasCodigo Fuente De Ejercicios De Gambas
Codigo Fuente De Ejercicios De Gambasmikyken
 
subversion hacks (create a commit template)
subversion hacks (create a commit template)subversion hacks (create a commit template)
subversion hacks (create a commit template)Hirohito Kato
 
Bouncingballs sh
Bouncingballs shBouncingballs sh
Bouncingballs shBen Pope
 
Ejercicios En Gambas
Ejercicios En GambasEjercicios En Gambas
Ejercicios En Gambasmafermen7
 
How to use Gmail like a pro
How to use Gmail like a proHow to use Gmail like a pro
How to use Gmail like a proJohan N
 
Trabajo Para Subir
Trabajo Para SubirTrabajo Para Subir
Trabajo Para Subirguest9da3a3
 
โจทย์ปัญหา Pbl8.1
โจทย์ปัญหา Pbl8.1โจทย์ปัญหา Pbl8.1
โจทย์ปัญหา Pbl8.1anusong
 

La actualidad más candente (18)

PyTrening 2.0 # 15 Okienka GUI
PyTrening 2.0 # 15 Okienka GUIPyTrening 2.0 # 15 Okienka GUI
PyTrening 2.0 # 15 Okienka GUI
 
Gambas
GambasGambas
Gambas
 
Bloqueador cmd-sh
Bloqueador cmd-shBloqueador cmd-sh
Bloqueador cmd-sh
 
Codigo Fuente De Ejercicios De Gambas
Codigo Fuente De Ejercicios De GambasCodigo Fuente De Ejercicios De Gambas
Codigo Fuente De Ejercicios De Gambas
 
Clang2018 class3
Clang2018 class3Clang2018 class3
Clang2018 class3
 
subversion hacks (create a commit template)
subversion hacks (create a commit template)subversion hacks (create a commit template)
subversion hacks (create a commit template)
 
ملخص البرمجة المرئية - الوحدة التاسعة
ملخص البرمجة المرئية - الوحدة التاسعةملخص البرمجة المرئية - الوحدة التاسعة
ملخص البرمجة المرئية - الوحدة التاسعة
 
Unix prog
Unix progUnix prog
Unix prog
 
Juego
JuegoJuego
Juego
 
Proyecto Blob
Proyecto BlobProyecto Blob
Proyecto Blob
 
Bouncingballs sh
Bouncingballs shBouncingballs sh
Bouncingballs sh
 
Programvba
ProgramvbaProgramvba
Programvba
 
Ejercicios En Gambas
Ejercicios En GambasEjercicios En Gambas
Ejercicios En Gambas
 
How to use Gmail like a pro
How to use Gmail like a proHow to use Gmail like a pro
How to use Gmail like a pro
 
Class & sub class
Class & sub classClass & sub class
Class & sub class
 
Elf文件解析
Elf文件解析Elf文件解析
Elf文件解析
 
Trabajo Para Subir
Trabajo Para SubirTrabajo Para Subir
Trabajo Para Subir
 
โจทย์ปัญหา Pbl8.1
โจทย์ปัญหา Pbl8.1โจทย์ปัญหา Pbl8.1
โจทย์ปัญหา Pbl8.1
 

Destacado

Tarea 3 opcional (1)
Tarea 3 opcional (1)Tarea 3 opcional (1)
Tarea 3 opcional (1)ramitooos
 
3M Scotchcast Power Cable Joint - Straight Joint 4c 120sqmm - LA25
3M Scotchcast Power Cable Joint - Straight Joint 4c 120sqmm - LA25 3M Scotchcast Power Cable Joint - Straight Joint 4c 120sqmm - LA25
3M Scotchcast Power Cable Joint - Straight Joint 4c 120sqmm - LA25 Thorne & Derrick International
 
REFRISAT NEWS 214 - UNIDADE DE AGUA GELADA,CHILLERS, RESFRIADORES
REFRISAT NEWS 214 - UNIDADE DE AGUA GELADA,CHILLERS, RESFRIADORESREFRISAT NEWS 214 - UNIDADE DE AGUA GELADA,CHILLERS, RESFRIADORES
REFRISAT NEWS 214 - UNIDADE DE AGUA GELADA,CHILLERS, RESFRIADORESmkt_refrisat
 
Nilai nilai pancasila pada masa pergerakan nasional
Nilai   nilai pancasila pada masa pergerakan nasionalNilai   nilai pancasila pada masa pergerakan nasional
Nilai nilai pancasila pada masa pergerakan nasionalYABES HULU
 
Felicitació Casolana, Tic Quintet 2009
Felicitació Casolana, Tic Quintet 2009Felicitació Casolana, Tic Quintet 2009
Felicitació Casolana, Tic Quintet 2009Mia Fortuny
 

Destacado (8)

Ing y arquit2012.
Ing y arquit2012.Ing y arquit2012.
Ing y arquit2012.
 
Tarea 3 opcional (1)
Tarea 3 opcional (1)Tarea 3 opcional (1)
Tarea 3 opcional (1)
 
Seja muito bem paga para usar perfumes, essências importadas
Seja muito bem paga para usar perfumes, essências importadasSeja muito bem paga para usar perfumes, essências importadas
Seja muito bem paga para usar perfumes, essências importadas
 
3M Scotchcast Power Cable Joint - Straight Joint 4c 120sqmm - LA25
3M Scotchcast Power Cable Joint - Straight Joint 4c 120sqmm - LA25 3M Scotchcast Power Cable Joint - Straight Joint 4c 120sqmm - LA25
3M Scotchcast Power Cable Joint - Straight Joint 4c 120sqmm - LA25
 
REFRISAT NEWS 212
REFRISAT NEWS 212REFRISAT NEWS 212
REFRISAT NEWS 212
 
REFRISAT NEWS 214 - UNIDADE DE AGUA GELADA,CHILLERS, RESFRIADORES
REFRISAT NEWS 214 - UNIDADE DE AGUA GELADA,CHILLERS, RESFRIADORESREFRISAT NEWS 214 - UNIDADE DE AGUA GELADA,CHILLERS, RESFRIADORES
REFRISAT NEWS 214 - UNIDADE DE AGUA GELADA,CHILLERS, RESFRIADORES
 
Nilai nilai pancasila pada masa pergerakan nasional
Nilai   nilai pancasila pada masa pergerakan nasionalNilai   nilai pancasila pada masa pergerakan nasional
Nilai nilai pancasila pada masa pergerakan nasional
 
Felicitació Casolana, Tic Quintet 2009
Felicitació Casolana, Tic Quintet 2009Felicitació Casolana, Tic Quintet 2009
Felicitació Casolana, Tic Quintet 2009
 

Similar a Area de un triangulo

Ejemplo En Gamabas
Ejemplo En GamabasEjemplo En Gamabas
Ejemplo En Gamabaseduann
 
Programas Gambas
Programas GambasProgramas Gambas
Programas GambasRZYMJ
 
Programas Gambas
Programas GambasProgramas Gambas
Programas Gambasguestdd103d
 
Programas Gambas
Programas GambasProgramas Gambas
Programas GambasRZYMJ
 
Trabajo Para Subir
Trabajo Para SubirTrabajo Para Subir
Trabajo Para Subirguest9da3a3
 
Trabajo Para Subir
Trabajo Para SubirTrabajo Para Subir
Trabajo Para Subirguest9da3a3
 
Yolygambas
YolygambasYolygambas
Yolygambasrosyp
 
Updated Visual Basic 6 for beginners.pptx
Updated Visual Basic 6 for beginners.pptxUpdated Visual Basic 6 for beginners.pptx
Updated Visual Basic 6 for beginners.pptxSarveshDeodhar
 
Trabajo Para Subir
Trabajo Para SubirTrabajo Para Subir
Trabajo Para Subirguest9da3a3
 
Codigo Fuente De Ejercicios De Gambas
Codigo Fuente De Ejercicios De GambasCodigo Fuente De Ejercicios De Gambas
Codigo Fuente De Ejercicios De Gambasmikyken
 
Visual Basic
Visual BasicVisual Basic
Visual BasicVj NiroSh
 
Ensayo Convergencia Informatica
Ensayo Convergencia InformaticaEnsayo Convergencia Informatica
Ensayo Convergencia Informaticamiguel camelo
 

Similar a Area de un triangulo (20)

Ejemplo En Gamabas
Ejemplo En GamabasEjemplo En Gamabas
Ejemplo En Gamabas
 
Programas Gambas
Programas GambasProgramas Gambas
Programas Gambas
 
Manual De Gambas
Manual De GambasManual De Gambas
Manual De Gambas
 
Programas Gambas
Programas GambasProgramas Gambas
Programas Gambas
 
Programas Gambas
Programas GambasProgramas Gambas
Programas Gambas
 
Trabajo Para Subir
Trabajo Para SubirTrabajo Para Subir
Trabajo Para Subir
 
Trabajo Para Subir
Trabajo Para SubirTrabajo Para Subir
Trabajo Para Subir
 
Programas Gambas
Programas GambasProgramas Gambas
Programas Gambas
 
Yolygambas
YolygambasYolygambas
Yolygambas
 
Yolygambas
YolygambasYolygambas
Yolygambas
 
Yolygambas
YolygambasYolygambas
Yolygambas
 
Vb file
Vb fileVb file
Vb file
 
Updated Visual Basic 6 for beginners.pptx
Updated Visual Basic 6 for beginners.pptxUpdated Visual Basic 6 for beginners.pptx
Updated Visual Basic 6 for beginners.pptx
 
Trabajo Para Subir
Trabajo Para SubirTrabajo Para Subir
Trabajo Para Subir
 
Codigo Fuente De Ejercicios De Gambas
Codigo Fuente De Ejercicios De GambasCodigo Fuente De Ejercicios De Gambas
Codigo Fuente De Ejercicios De Gambas
 
Visual Basic
Visual BasicVisual Basic
Visual Basic
 
Calculadora
CalculadoraCalculadora
Calculadora
 
Ensayo Convergencia Informatica
Ensayo Convergencia InformaticaEnsayo Convergencia Informatica
Ensayo Convergencia Informatica
 
Docimp
DocimpDocimp
Docimp
 
Ejercicios
EjerciciosEjercicios
Ejercicios
 

Más de Ivan Ramirez Iglesias (9)

Belga 1
Belga 1Belga 1
Belga 1
 
42061 física i- trabajos prácticos 1998
42061  física i- trabajos prácticos 199842061  física i- trabajos prácticos 1998
42061 física i- trabajos prácticos 1998
 
Manualcpp
ManualcppManualcpp
Manualcpp
 
Intro c
Intro cIntro c
Intro c
 
Diagramas de flujo
Diagramas de flujoDiagramas de flujo
Diagramas de flujo
 
Desarrollando con visual studio
Desarrollando con visual studioDesarrollando con visual studio
Desarrollando con visual studio
 
Pract met de la program templa
Pract met de la program templaPract met de la program templa
Pract met de la program templa
 
Jbpm user-guide-spanish
Jbpm user-guide-spanishJbpm user-guide-spanish
Jbpm user-guide-spanish
 
108091 prog formativo_ii
108091 prog formativo_ii108091 prog formativo_ii
108091 prog formativo_ii
 

Area de un triangulo

  • 1.  AREA DE UN TRIANGULO: Private sub command_click( ) Din b , h As Integer b = val (text1) h = val (text2) area = (b*h) / 2 text3.text = area End sub Private sub command_click ( ) Text1 = “ “ Text2 = “ “ Text3 = “ “ End sub Private sub command_click ( ) End End sub  AREA DE UNA CIRCUNFERENCIA: Private sub command_click ( ) Din R As Double Din A As Double R = Val (text1) A = Val (text2) Area = 3…14159265358979 * (R * R ) Text3.text =area End sub Private sub command2_click ( ) Din R As Double Din A As Double R = Val (text1) A = Val (text2) Longi = A * R Text4.text = longi End sub Private sub command3_click ( ) End End sub
  • 2.  SUMA DE LOS 50 )PRIMEROS NUMEROS NATURALES: private sub command1_click ( ) Din R As DoubleP If (R < 50 ) then R = val (text1) Suma = (R *(R + 1) ) / 2 Text2.text = suma If (R > = 51 ) then Text3.text =”este numero no esta permitido,pero la respuesta es: “& suma End If End If End sub Private sub command2_click ( ) Text1 = “ “ Text2 = “ “ Text3 = “ “ End sub Private sub command_click ( ) End End sub  REGLA DE TRES SINPLE:: Private sub command1_click ( ) Din a , b ,c As Double a = val (text1) b = val (text2) c = val ( text3) d=(c*b) /a text4.text = d End sub Private sub command2_click ( ) End End sub
  • 3.  MOSTRAR LA EDAD EN LA PANTALLLA: Private sub command1_click( ) E nd End sub Private sub command2_click ( ) Din E As Double E = val (text1) If (E < 0) then Text2.text = “no pudes tener esa edad” End If If (E > 0) then Text2.text = “ eres un(a) niño(a)” End If If (E > 10) then Text2.text = “adolescente” End If If (E > 18 ) then Text2.text = “como le va joven” End If If (E > 30 ) then Text2.text = “eres todo un adulto” End If If (E >65 ) then Text2.text = “abuelo” End If If (E > 100) then Text2.text = “no puedes seguir vivo!!!” End If End sub  SUMA DE LOS 100 PRIMEROS NUMEROS Impares: Private sub command1_click ( ) Din n As Integer n = val ( text1) text2.text = IIf (n < = 100, (n * n), “no se puede” End sub