+ 5
Pattern in java
1234554321 1234 4321 123 321 12 21 1 1
22 odpowiedzi
+ 12
Have you made yourself your own attempt?
+ 4
๐๐ข๐ข๐๐จ ๐๐ก๐๐ฒ๐๐ฅ Oho.. Apne code ki publicity kar rhe ho๐๐๐
Mazaak kar rha hoon
It's just a demo....
+ 4
๐๐ข๐ข๐๐จ ๐๐ก๐๐ฒ๐๐ฅ The space should increase with every iteration
+ 2
๐๐ข๐ข๐๐จ ๐๐ก๐๐ฒ๐๐ฅ please display a java pattern code otherwise your code appears to be advertising other than relevant to the discussion.
https://code.sololearn.com/c8HQ2vz24iDa/?ref=app
+ 2
Sneha
If you see,
55 is replaced by 3 spaces (len('55') + 1)
4554 is replaced by 6 spaces (len('4554') + 2)
345543 is replaced by 9 spaces (len('345543') + 3)
23455432 is replaced by 12 spaces (len('23455432') + 4)
I hope you get the pattern followed in this case...
Actually, I don't know the syntax used for length in Java... len stands for length of the string in the parenthesis in python...
+ 2
๐๐ข๐ข๐๐จ ๐๐ก๐๐ฒ๐๐ฅ See the pattern carefully...
This was not expected
+ 2
See this program it will help you :
https://code.sololearn.com/cP9eUt7l5EH7/?ref=app
+ 1
Namit Jain future reference
https://www.javatpoint.com/java-string-length
0
Tell in java its urgent ๐
0
Yes but its not coming after trying several time please can you help me out
0
How to post actually i have joined yesterday only......
0
Please help me as i am a new learner
0
Its a html
0
Tell in java please
0
Can you tell me