questioner63 questioner63
  • 20-04-2022
  • Computers and Technology
contestada

Please help with this question in java.
Computers .​

Please help with this question in javaComputers class=

Respuesta :

Аноним Аноним
  • 20-04-2022

Here is the program~

/*Pattern.Java.*/

import java.util.*;

public class Pattern_Prog

{

public static void main (String args[ ])

{

Scanner input = new Scanner(System.in);

int length;

System.out.print("Enter a word : ");

String word = input.next( );

length = word. length( );

for(int i = 0; i<= length; i++)

{

for(int j = 0; j<i; j++)

{

System.out.print(" ");

}

System.out.println(word.substring(0,length-i));

}

input.close( );

}

}

Hope it helps you!!

Answer Link

Otras preguntas

You have been told that you must give up one of your senses. Which one would you choose not to have? Why would you choose this sense and not one of the others?
immediately URGENT HELP PLEASE
SOMEONE HELP PLEASE!!!
Science Tolliver Complete the sentence to explain when waves interact. Waves interact with and other Intro Done
Q4y land, environment, technology)Land is example ofresources​
Select two statements that best explain how the author develops the narrator's point of view.
ways that Mass Media has affected your everyday life.
Alex's mom jokes about living before the Revolutionary War because
6x-2y=156.......(1)X - y=18.........(2)(1)-2×(2 )How will you go about it​
A 10-foot ladder is leaning against a wall. The bottom of the ladder is 4 feet from the base of the wall, as shown below. What is the closest distance from the