asked 156k views
2 votes
program 3.Study the code carefully and write out the line where there is error, debug it and write out the correct code 1. ModuleModule1 2. Sub Main() 3. Dim num AsDouble 4. Num=10.0 5. Console.writeLine('The square root of '# & "is"$Math.sqrt(num)) 6. Console.ReadKey() 7. EndSub 8. EndModule​

asked
User Bzamfir
by
8.2k points

1 Answer

4 votes

Answer:

see picture.

  • Spaces were missing in crucial places
  • The string in the WriteLine statement should have double quotes
  • Concatenate strings and variables with the &, and not the # or $.
program 3.Study the code carefully and write out the line where there is error, debug-example-1
answered
User Mohit Malik
by
8.5k points