Computer Science, asked by suvrahore20, 1 year ago

Display the pattern
ABC DE
BCDE
CDE
DE
E​

Answers

Answered by amannishad0512p5zxh6
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