=================================Slip10_1===================================
Write a VB program to convert temperature in
Celsius to Fahrenheit and result should display into message box.
(Accept input through input box)
==========================================================================
Private Sub
Command1_Click()
temp = Val(InputBox("Enter
Temperature in celcius"))
Dim F As Integer
F = temp * 9 / 5 + 32
MsgBox ("Temp in F is
"& F)
End Sub
No comments:
Post a Comment
Note: only a member of this blog may post a comment.