Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

fix the error please java 3 5 6 7 8 9 LO 11 class Main { public static void main(String[] args) { int x =

image text in transcribed
fix the error please java
3 5 6 7 8 9 LO 11 class Main { public static void main(String[] args) { int x = 20; if(x>30){ System.out.println("X is more than 30"); } else { System.out.println("x is less than 30"); } 12 13 14 15 16 17 18 19 20 21 22 // part 2/7 java.util.Scanner input = new Scanner(System.in); System.out.println("Enter a number: "); int h = input.nextInt(); if(>=h && h=60) { System.out.println(" You passed "); }else{ System.out.println(" You failed "); } } else { System.out.println(" Error!!! scores must be between 0 - 100 "); 3 } 23 24 25 26

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Moving Objects Databases

Authors: Ralf Hartmut Güting, Markus Schneider

1st Edition

0120887991, 978-0120887996

More Books

Students also viewed these Databases questions

Question

b. What are its goals and objectives?

Answered: 1 week ago