+ 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! 😊

9th Feb 2018, 6:34 AM
Çůřîöş ßąšäñț 🇮🇳
Çůřîöş ßąšäñț 🇮🇳 - avatar
22 Answers
+ 20
//RUBY rocks sometimes ... hahaha https://code.sololearn.com/cPCEzo712b4z/?ref=app
9th Feb 2018, 7:11 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
9th Feb 2018, 8:34 AM
LukArToDo
LukArToDo - avatar
9th Feb 2018, 1:46 PM
Ipang
+ 9
had difficulties to use a loop. Finally i implemented one https://code.sololearn.com/cwIu3O1602k2/?ref=app
9th Feb 2018, 7:56 AM
Oma Falk
Oma Falk - avatar
+ 9
https://code.sololearn.com/c5dKssOd49j8/?ref=app
9th Feb 2018, 8:55 AM
Käzî Mrîdùl Høssäîn
Käzî Mrîdùl Høssäîn - avatar
+ 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/
9th Feb 2018, 6:55 PM
Pedro Maimere
Pedro Maimere - avatar
9th Feb 2018, 7:28 AM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar
+ 6
As requested, a hollow pyramid: https://code.sololearn.com/WO40eGOY80gf/?ref=app
9th Feb 2018, 9:12 AM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar
+ 6
https://code.sololearn.com/cG7HuvJjq2On/?ref=app math makes thing easy
9th Feb 2018, 9:52 AM
Arun
9th Feb 2018, 6:51 AM
Leonardo Medai Cossutta
Leonardo Medai Cossutta - avatar
+ 5
Guyz, Must also try to make a hollow Pyramid! 😊 That would be fun to see. 👌👌
9th Feb 2018, 8:42 AM
Çůřîöş ßąšäñț 🇮🇳
Çůřîöş ßąšäñț 🇮🇳 - avatar
+ 5
Stylized version (permits hallow and not): https://code.sololearn.com/cilx3t3y33Mg/#py
9th Feb 2018, 11:30 AM
KrOW
KrOW - avatar
+ 4
@guaraw ... yes if Ruby has to build monumentals it rocks and arranges them. late.... but got it!
9th Feb 2018, 8:48 AM
Oma Falk
Oma Falk - avatar
+ 4
A try with Kotlin and recursion https://code.sololearn.com/cGpSUET6U8cf
12th Feb 2018, 4:05 PM
Oma Falk
Oma Falk - avatar
9th Feb 2018, 7:43 PM
bedawang
bedawang - avatar
+ 3
You all guys had did a great job. Awesome, keep learning.
10th Feb 2018, 6:57 PM
Çůřîöş ßąšäñț 🇮🇳
Çůřîöş ßąšäñț 🇮🇳 - avatar
9th Feb 2018, 8:45 AM
KrOW
KrOW - avatar
9th Feb 2018, 12:17 PM
Francesco
+ 1
https://code.sololearn.com/cCuZ1yr42NFc/?ref=app
10th Feb 2018, 12:06 PM
SKELU21
SKELU21 - avatar