Question: The following code has an error. Indicate the line number(s) where the error occurs and rewrite the correct code Language: Visual Basics Question 6 The
The following code has an error. Indicate the line number(s) where the error occurs and rewrite the correct code
Language: Visual Basics

Question 6 The following code has an error. Indicate the line number(s) where the error occurs and rewrite the correct code 1. Public Class Form1 4 5 2. Private Sub btnSum_Click(ByVal sender As System.Object, ByVal e As System EventArgs) Handles btnSum Click 3 Dim sum As Single sum = CSng(txtNum 1.Text & txtNum2. Text & txtNum3 Text) lblum.Text = sum.ToString 6 End Sub 7 Private Sub btnExit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExit Click 8. Me Exit() 9. End Sub 10 End Class
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
