Consider the following program segment: Scanner input new Scanner(System.in); System.out.print("Please enter your score"
Posted: Thu Jun 02, 2022 8:18 am
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"); 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"); }