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

If a cubic inch of gold weighs 316 grams, how much does a cubic centimeter of gold weigh?
Is NaClO4/HClO4 a buffer system
What is the absolute location of Aden? 9ºN, 43ºE 14ºN, 45ºE 20ºN, 58ºE 22ºN, 44ºE
Escoje la respuesta que NO tiene sentido. Yo trabajo en ________. una oficina una fábrica una izquierda un correo
What would the answers be to both of these questions?? Please help lol I'm very lost-
How did industrialization and the government policies of the times help the U.S. economy grow?
Is it alive? (gives 15 points!)A growing potted plantA tall skyscraperPumpkin seeds in the groundAn empty turtle shellA synthetic rubber bandA metamorphic rock
Solve the inequality. 3x + 10 < 3 or 2x – 5 > 5
HELPPPPPPPPPP PLEASE
Two angles are supplementary. The measure of the larger angle is 36 more than the measure of the smaller angle. Find their measures. the answers are 72° and 108