Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please fix code: errors: Homework 1-3 Textbook Section 5.17 Write a Java program that prompts the user for an int n. You can assume that

image text in transcribed
please fix code:
image text in transcribed
errors:
image text in transcribed
image text in transcribed
Homework 1-3 Textbook Section 5.17 Write a Java program that prompts the user for an int n. You can assume that 15 S 9. Your program should use embedded for loops that produce the following output: 21 3 2 1 4321 54321 n...54321 Your prompt to the user should be: Please enter a number 1...9: Please note that your class should be named Pattern Two. U Grades.java Pattern WU.Java IUR.Java import java.util.Scanner; class Pattern Two { e public static void main(String args[]) Scanner input=new Scanner(System.in); int n=0,1-0,j=0,k=0; System.out.println("Please enter a number 1...9: "); n=input.nextIntO; for(i=1;ii;j--){ System.out.print("\t"); for(; j>0;j--) { System.out.print(j + "\t"); System.out.println(); > > > Problems Javadoc Declaration Console 23 Tab: Created with an expression for inserting a tab, such as \t. but Replacement: System is unable to render this character. put Done

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

Students also viewed these Databases questions