+ 14

[๐Ÿ† Challenge ๐Ÿ†]:: Octagons this time! ๐ŸŽฎ๐Ÿ’กโš ๐Ÿ†

Create a code to print octagons of given length. Eg- Input-> 4 Output-> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * You can also see my code - https://code.sololearn.com/cOKDYH1vfAwj/?ref=app

18th Oct 2017, 2:38 PM
Swapnil Srivastava
Swapnil Srivastava - avatar
14 Answers
19th Oct 2017, 1:55 AM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
+ 18
โฌœ๐ŸŒน๐ŸŒน๐ŸŒน๐ŸŒน๐ŸŒนโฌœ ๐ŸŒนโฌœโฌœโฌœโฌœโฌœโฌœ ๐ŸŒนโฌœโฌœโฌœโฌœโฌœโฌœ ๐ŸŒนโฌœโฌœโฌœ๐ŸŒน๐ŸŒน๐ŸŒน ๐ŸŒนโฌœโฌœโฌœโฌœโฌœ๐ŸŒน ๐ŸŒนโฌœโฌœโฌœโฌœโฌœ๐ŸŒน โฌœ๐ŸŒน๐ŸŒน๐ŸŒน๐ŸŒน๐ŸŒนโฌœ https://code.sololearn.com/cFIcTgpFNIZl/?ref=app
19th Oct 2017, 6:34 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 18
//hey guys , can u all try my code again โ˜บ // i just modified it for regular octagon โ˜บ , thanks
19th Oct 2017, 5:30 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 14
hey ... try mine ๐Ÿ˜ƒ โ˜โ˜โ˜
19th Oct 2017, 10:11 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
19th Oct 2017, 5:25 PM
David Akhihiero
David Akhihiero - avatar
+ 9
Good challenge I will do
18th Oct 2017, 3:26 PM
๐Ÿ‘‘ Prometheus ๐Ÿ‡ธ๐Ÿ‡ฌ
๐Ÿ‘‘ Prometheus ๐Ÿ‡ธ๐Ÿ‡ฌ - avatar
+ 9
https://code.sololearn.com/cJScoH0i0l5p/?ref=app Did it yesterday, but was told to keep my phone away and sleep
19th Oct 2017, 2:03 AM
๐Ÿ‘‘ Prometheus ๐Ÿ‡ธ๐Ÿ‡ฌ
๐Ÿ‘‘ Prometheus ๐Ÿ‡ธ๐Ÿ‡ฌ - avatar
+ 8
Here's my C# implementation! โœŒ To be honest I reused the code from the previous hexagon challenge. Simply extending the hexagon and you'll get an octagon! Enjoy~ โค https://code.sololearn.com/cUbuzQ9UhA56/?ref=app
19th Oct 2017, 2:41 AM
Zephyr Koo
Zephyr Koo - avatar
+ 8
@Pegasus your code works right only with 4 as input. Otherwise good code.
19th Oct 2017, 4:30 AM
Swapnil Srivastava
Swapnil Srivastava - avatar
+ 7
@Petros Simidyan Your code - 1) doesn't accept odd input 2) doesn't make the required figure
22nd Oct 2017, 3:54 AM
Swapnil Srivastava
Swapnil Srivastava - avatar
22nd Oct 2017, 1:46 AM
Petros Simidyan
Petros Simidyan - avatar
+ 3
Here you go. Checks for valid input https://code.sololearn.com/chn3WAY4b87p/?ref=app
19th Oct 2017, 9:12 AM
Vari93
Vari93 - avatar
+ 2
https://code.sololearn.com/cNhqTWby7Y0K/?ref=app
19th Oct 2017, 4:55 PM
Bairavi Singaravelu
Bairavi Singaravelu - avatar
- 1
a whole new refreshing challenge## try it https://www.sololearn.com/discuss/817002/?ref=app
26th Oct 2017, 5:04 PM
sayan chandra
sayan chandra - avatar