Computer Science, asked by suvrahore20, 1 year ago

display the pattern:
(c) B L U EJ
LU EJ
UE J
E J​


sswaraj04: u want a program??
sswaraj04: if so then in which language
suvrahore20: java....
sswaraj04: the spaces in question are there or it's by mistake??
suvrahore20: they are there

Answers

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


amannishad0512p5zxh6: hii
suvrahore20: hi
suvrahore20: school?????
suvrahore20: okk....leave
amannishad0512p5zxh6: okk
suvrahore20: I have question for you....english subject
suvrahore20: do people ever grow up
amannishad0512p5zxh6: I have weak English
suvrahore20: I marked ur answer as brainlist......happy now
amannishad0512p5zxh6: Yaa i am ecstatic
Similar questions