+ 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
14 Answers
+ 19
+ 18
โฌ๐น๐น๐น๐น๐นโฌ
๐นโฌโฌโฌโฌโฌโฌ
๐นโฌโฌโฌโฌโฌโฌ
๐นโฌโฌโฌ๐น๐น๐น
๐นโฌโฌโฌโฌโฌ๐น
๐นโฌโฌโฌโฌโฌ๐น
โฌ๐น๐น๐น๐น๐นโฌ
https://code.sololearn.com/cFIcTgpFNIZl/?ref=app
+ 18
//hey guys , can u all try my code again โบ
// i just modified it for regular octagon โบ , thanks
+ 14
hey ... try mine ๐ โโโ
+ 9
Good challenge I will do
+ 9
https://code.sololearn.com/cJScoH0i0l5p/?ref=app
Did it yesterday, but was told to keep my phone away and sleep
+ 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
+ 8
@Pegasus your code works right only with 4 as input. Otherwise good code.
+ 7
@Petros Simidyan
Your code -
1) doesn't accept odd input
2) doesn't make the required figure
+ 4
Check out my version!
https://code.sololearn.com/cUdekP6qjruW/#
+ 3
Here you go. Checks for valid input
https://code.sololearn.com/chn3WAY4b87p/?ref=app
+ 2
https://code.sololearn.com/cNhqTWby7Y0K/?ref=app
- 1
a whole new refreshing challenge##
try it
https://www.sololearn.com/discuss/817002/?ref=app