Question: Find ALL the errors in the following code and explain what they are and how to correct them. int number = 33; int counter =

Find ALL the errors in the following code and explain what they are and how to correct them.

int number = 33;

int counter = 1;

while( counter < number )

System.out.println( counter );

counter =+ 2;

Find ALL the errors in the following code and explain what they are and how to correct them.

double average;

int num1 = 75;

int num2 = 84;

average = num1 + num2 / 2;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!