Write a program to display the given pattern
B
BLU
BLUE
BLUE
Answers
Answered by
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
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