display the pattern:
(c) B L U EJ
LU EJ
UE J
E J
sswaraj04:
u want a program??
Answers
Answered by
0
class Bluej
{
public static void main ( String args [ ])
{
String a="BLUEJ";
int i,j,l;
l=a.length( );
for(i=0;i<l;i++)
{
if(i==4)
{
break;
}
for(j=i;j<l;j++)
{
System.out.print(j+" ");
}
System.out.println("");
}
}
}
Mark me brainlest@
And follow me for more java related doubts.
Similar questions