Visual Basic - programacion

Life is soft - evento anual de software empresarial
 
Vista:

programacion

Publicado por maribel (2 intervenciones) el 19/05/2010 06:03:39
por fa ayudenme
este problema en programacion
1.-imprimir...x,"+",n,"=",(x+n)
2.-imprimir...(x+n),"-",n,"=",x
3.-imprimir...x,"*",n,"=",(x*n)
4.-imprimir..(x*n),"/",n,"=",x
nota...ingresar "n" y es entero
para x de 1 al 12
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:programacion

Publicado por Gacam (2 intervenciones) el 20/05/2010 15:50:29
Te mando la primera respuesta con msgbox para que lo veas por la pantalla. de este te puedes basar para hacer los otros tres.Puse la variable operacion por si quieres hacer algun tipo de operacion . como no te explicaste muy bien , segun esto yo te entendi.a ver si te sirve.Ocupas un Command y un Textbox y para imprimir usas Printer.print

Dim n As Integer
Dim x As Integer
Dim Operacion As Integer

Private Sub Command1_Click()
Operacion = 0

For x = 1 To 12

Operacion = x + Val(Text1.Text)
'Operacion = Operacion + x(0, i) + Val(Text1.Text)

MsgBox "Solución 1 : " & x & " + " & Val(Text1.Text) & " = " & "(" & x & " + " & n & ")" & ". Este es " & x & " de 12 por hacer. "

Next
End Sub

Private Sub Form_Load()

Text1.Text = ""

End Sub
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar