Consider the following program segment: Scanner input new Scanner(System.in); System.out.print("Please enter your score"); int value input.nextInt(): if (value> 90 ) ( System.out.println("well done"); } else if ( value 75) ( System.out.println("satisfactory my child"); } else ( System.out.println("stay positive");: ( What is the output of the given program if the user enters 100? A. Well done B. Well done satisfactory my child stay positive C. stay positive
Consider the following program segment: Scanner input = new Scanner(System.in); System.out.print("Please enter your score"); int value input.nextInt(); if (value> 90 ) { System.out.println("Well done"); } else { if (value >= 75 ) { System.out.println("satisfactory my child"); } else { System.out.println("stay positive"); }
Consider the following program segment: Scanner input new Scanner(System.in); System.out.print("Please enter your score"
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Consider the following program segment: Scanner input new Scanner(System.in); System.out.print("Please enter your score"
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!