Problems: Correcting Code ErrorsThe following sample of code contains errors. Rewrite the incorrect statements to correct all errors.
An application needs to display the message "Please add water" when the amount of water has fallen below the safe limit. Rewrite the following If statement to correct all errors:If intWaterLimit < intWaterAmount Then lblWarning = "Please add water"End If
What will be an ideal response?
If intWaterAmount < intWaterLimit Then
lblWarning.Text = "Please add water"
End If
Computer Science & Information Technology