Print the following pattern? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Print the following pattern?

1 2 3 4 5 5 4 3 2 1 1 2 3 4 4 3 2 1 1 2 3 3 2 1 1 2 2 1 1 1

27th Aug 2019, 6:25 AM
Aryan
Aryan - avatar
6 Answers
+ 6
cout << "1234554321\n" << "1234 4321\n" << "123 321\n" << "12 21\n" << "1 1\n"; Otherwise, what have you tried so far?
27th Aug 2019, 6:29 AM
Shadow
Shadow - avatar
+ 2
Show us your attempt?
27th Aug 2019, 6:29 AM
Trigger
Trigger - avatar
+ 1
Shadow Savage! 😁😁😁
27th Aug 2019, 6:31 AM
Ipang
+ 1
Give a try before seeking help...From next time no excuses... Happy Coding Hope this helps...!!! https://code.sololearn.com/c5s0VUHZkUzC/?ref=app
29th Aug 2019, 7:25 AM
Kuri
Kuri - avatar
0
Lol Shadow
27th Aug 2019, 6:30 AM
Trigger
Trigger - avatar
0
I have created a program for that. https://code.sololearn.com/c2JuzAgCxQ3C/?ref=app
27th Aug 2019, 8:56 AM
Ketchup🍅
Ketchup🍅 - avatar