+ 10
CHALLENGE : PYRAMID in a Single Loop! 😊🔺©️
Write a program to print the pattern of a PYRAMID using only a single loop statement. The best code will be chosen as the "BEST ANSWER"🏅🏆 So, get started now! 🏇 . NOTE: Comment a link of this challenge in your post, so that we can find you easily ! ! . Happy Coding! 😊
22 Answers
+ 20
//RUBY rocks sometimes ... hahaha
https://code.sololearn.com/cPCEzo712b4z/?ref=app
+ 23
One loop, one line... 😁
https://code.sololearn.com/c6A3XFp7MLTb/?ref=app
+ 10
Here's my try... : )
https://code.sololearn.com/c85pUzm8bzyU/?ref=app
+ 9
had difficulties to use a loop.
Finally i implemented one
https://code.sololearn.com/cwIu3O1602k2/?ref=app
+ 9
https://code.sololearn.com/c5dKssOd49j8/?ref=app
+ 7
Hello, everyone!
I just did a triforce :)
Zelda players, rejoice!
(just type the width of a triangle and enjoy)
https://code.sololearn.com/cHQDpvpn57vq/
+ 6
Here's mine
https://code.sololearn.com/WgCuAna8EGRc/?ref=app
+ 6
As requested, a hollow pyramid:
https://code.sololearn.com/WO40eGOY80gf/?ref=app
+ 6
https://code.sololearn.com/cG7HuvJjq2On/?ref=app
math makes thing easy
+ 5
Here my code
https://code.sololearn.com/cjNft0DPI8k5/?ref=app
+ 5
Guyz, Must also try to make a hollow Pyramid! 😊
That would be fun to see. 👌👌
+ 5
Stylized version (permits hallow and not):
https://code.sololearn.com/cilx3t3y33Mg/#py
+ 4
@guaraw ... yes if Ruby has to build monumentals it rocks and arranges them.
late.... but got it!
+ 4
A try with Kotlin and recursion
https://code.sololearn.com/cGpSUET6U8cf
+ 3
Ruby oneliner:
https://code.sololearn.com/cpOB89gsJHuP/#rb
+ 3
You all guys had did a great job. Awesome, keep learning.
+ 2
+ 2
Pyramid PHP ...
https://code.sololearn.com/w69QIG32TRI4
+ 1
https://code.sololearn.com/cCuZ1yr42NFc/?ref=app