Pattern in java | SoloLearn: Learn to code for FREE!

+6

Pattern in java

1234554321 1234 4321 123 321 12 21 1 1

5/30/2020 2:48:40 PM

Sneha

21 Answers

New Answer

+11

Have you made yourself your own attempt?

+7

Sneha BroFar Namit Jain https://javagateway.in/java-core-concepts-programs/print-patterns-examples/pattern-9/ I think it's the shortest one

+6

Sneha Please don't just ask for readymade code in here. This is a self-learning forum. If you show us your attempt, we may give you a hint. ‌https://www.sololearn.com/discuss/1316935/?ref=app ‌

+5

Sneha BroFar Namit Jain Now it's good , isn't it? Here's a code , I've linked here https://code.sololearn.com/c81HQzQo8vam/?ref=app

+4

𝐊𝐢𝐢𝐛𝐨 𝐆𝐡𝐚𝐲𝐚𝐥 Oho.. Apne code ki publicity kar rhe ho😂😂😂 Mazaak kar rha hoon It's just a demo....

+4

Sneha Here's my try , hope you'll get it https://code.sololearn.com/c81HQzQo8vam/?ref=app

+3

Namit Jain you should ask Sneha As I think it's expected

+3

𝐊𝐢𝐢𝐛𝐨 𝐆𝐡𝐚𝐲𝐚𝐥 The space should increase with every iteration

+2

Sneha Plz link your stuff here

+2

Sneha Go to your profile Click on code bits You will get a plus symbol at the bottom Click on it Choose your desired language Type your code Save it Share its link to us

+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

+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