Display the pattern
ABC DE
BCDE
CDE
DE
E
Answers
Answered by
2
class ABCDE
{
public static void main ( String args [ ])
{
String a="ABCDE";
int i,j,l;
l=a.length( );
for(i=0;i<l;i++)
{
for(j=i;j<l;j++)
{
System.out.print(j+" ");
}
System.out.println("");
}
}
}
Mark me brainlest@
Similar questions