b) 1 Dim num As Integer 2 Dim result As Integer =1 3 For i As Integer 4 result *- num %3D = 10 To (num ^ 2) step -10 5 Next 6i-i^num

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter3: Assignment, Formatting, And Interactive Input
Section3.4: Program Input Using Cin
Problem 11E
icon
Related questions
Question
Extract errors from the following codes and then obtain weather they are syntax error or run time error?
b)
1 Dim num As Integer = 5
2 Dim result As Integer =1
3 For i As Integer = 10 To (num
4 result *= num
^ 2) step -10
5 Next
6 i i^ num
I
Line#
Error Description
Error Type (Syntax or Runtime)
Correction
Transcribed Image Text:b) 1 Dim num As Integer = 5 2 Dim result As Integer =1 3 For i As Integer = 10 To (num 4 result *= num ^ 2) step -10 5 Next 6 i i^ num I Line# Error Description Error Type (Syntax or Runtime) Correction
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning