Question: Question 2 Choose the right answer in the line 10 of the following code that reads and prints the user inputs (course code and course
Question 2 Choose the right answer in the line 10 of the following code that reads and prints the user inputs (course code and course name) String cname: 6 int code: 7 Scanner output= new Scanner (System.in): 8 System.out.print("please enter course code"); 9 code -output.nextInt (); 10 11 System.out.print("please enter course name :"); 12 cramewoutput.nextLine(); 13 System.out.print("the course name "ename); 14 System.out.println(" the count code is "+code): no statement is missing chame=output next(): cname-output nextInt(); cname-output nextLine()
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
