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

(02.03) At a dog shelter, a 28-pound bag of dog food will feed 42 dogs. How many dogs would you expect to feed with a 14-pound bag of dog food? (Input only who
You are making a fleece blanket m. You buy 2.5 yards of fleece for $19.95. How much does the fleece cost per yard
Abandonment of croplands has resulted in more forests covering the ________ part of the u.s.
The perimeter of a rectangle is 34 units. Its width is 6.5. Write an equation to determine the length (l)(l)(l)left parenthesis, l, right parenthesis of the rec
what was the common factor in each crusade
Please can someone tell me the answers I'm struggling
Explain how you can use doubles when multiplying with 4 to find 4x8
why are innocent people charge with crime
Watson argued that areas of applied psychology can be considered scientific because they ____.
Which of the following statements is not true about chuck berry