0
String length
If the string is Adam how can the output be M MM MM MMM (I think it is based on the string length)
5 Réponses
+ 2
Something like this?
https://code.sololearn.com/cz29O11fMYAY/?ref=app
+ 2
What do you want the output to be, exactly? Also, in which language?
+ 1
Yes you need the length. And I would use two loops.
one for the row:
for (int i = 0; i < length; i++){
//inside one for the line
for (int j = 0; j < i; j++){
//print the chars
}
}
+ 1
Thankyou so much 😍
0
Java language, thank you