+ 6
[🏆CHALLENGE🏆] Create a triangle out of slashes!
Challenge: Create a code that will take user input, and generate a centered and layered triangle out of slashes ("/", "\"), that has a base. Any language is welcome! Example: Input: 3 Output: /\ / \ / \ ******
12 Antworten
+ 7
Thanks to all for participating! This was my first challenge type thing. 😀
+ 12
//it is not able print accurately , still a try ☺
https://code.sololearn.com/c4qI3S0ziM1Z/?ref=app
+ 6
Here's mine
https://code.sololearn.com/c2S7X1vcKTb9/?ref=app
+ 5
my try in java :
https://code.sololearn.com/c8NLCUcyTCbQ/?ref=app
+ 5
Here's one
https://code.sololearn.com/coOJveju57BY
+ 4
Here you go. Checks for valid input
https://code.sololearn.com/cyB1ot06r81N/?ref=app
+ 4
I'm still quite new to Java (learning it rn, it's pretty nice), so I'm kind of surprised I pulled this off:
https://code.sololearn.com/cIZ41QTPlR8u/?ref=app
+ 3
https://code.sololearn.com/cn6VA69iNqJF/?ref=app
+ 3
my practice on python https://code.sololearn.com/cC3b89UjwDq5/#py