+ 1
Print the following pattern using string methods only.
B LL UUU EEEE JJJJJ
7 Respostas
+ 3
+ 2
Check this:
https://code.sololearn.com/c7ald8PLgmci/?ref=app
Output:
B
LL
UUU
EEEE
JJJJJ
+ 1
0
Lisa agreed.
Asmit Choudhary it is expected that you post the code how you attempt to solve it, or explain where you are stuck. We can guide you, but you should not expect a complete solution from other people. This is for your own benefit, Sololearn is a self learning platform.
0
Asmit Choudhary
Your code is almost perfect. Just need to change the inner loop like this, so that the letter in each row is repeated as many times as the row number.
for(int j=0;j<=i;j++)
0
Also remember to replace the test string with the user input (you haven't used the scanner yet)
- 1
You just posted the same question and received an approach? Please follow this approach and then show your code attempt. If you want to add or clarify something, please post in your thread.
Tibor Santa You see the issue?