Computer Science, asked by archan8328, 10 months ago


Write a program to display the given pattern
B
BLU
BLUE
BLUE​

Answers

Answered by snehasinghlike2
1

Answer:

One day it was a holiday. Everybody was at home. Children sprang up in joy and

merriment. It was dawn. Veeru and other little stars got together to play in a

park nearby………

Guys Pls Pls Pls....... Help

Answered by atrs7391
0

class test

{

   public static void main (String[] args)

   {

       String s ="BLUE";

       int l=s.length();

       int a;

       for (a=1; a<=l; a++)

       {

           System.out.println(s.substring(0,a));

       }

   }

}

Similar questions