Skip to main content

Write a VB program to convert temperature in Celsius to Fahrenheit and result should display into message box. (Accept input through input box)

· One min read
Kaustubh Kulkarni
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