Question: 2- a) Identify and correct the errors in the below given program: class Myclass 1 { public static void main(String args[]) { int n-9; do

 2- a) Identify and correct the errors in the below given

2- a) Identify and correct the errors in the below given program: class Myclass 1 { public static void main(String args[]) { int n-9; do System.out.println(n); if (n%2 = 0; { continue; while (n>=1) } } } b) Write the output from the above program (a) after corrected it

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!