7 kyu
Return pyramids
641 of 1,381josemanuel.rincon
Description:
The task is very simple.
You must to return pyramids. Given a number n
you print a pyramid with n
floors
For example , given a n=4
you must to print this pyramid:
/\
/ \
/ \
/______\
Other example, given a n=6
you must to print this pyramid:
/\
/ \
/ \
/ \
/ \
/__________\
Another example, given a n=10
, you must to print this pyramid:
/\
/ \
/ \
/ \
/ \
/ \
/ \
/ \
/ \
/__________________\
Note: a line feed character is needed at the end of the string. Case n=0
should so return "\n"
.
Strings
Algorithms
ASCII Art
Puzzles
Similar Kata:
Stats:
Created | Nov 27, 2017 |
Published | Nov 27, 2017 |
Warriors Trained | 3328 |
Total Skips | 53 |
Total Code Submissions | 5747 |
Total Times Completed | 1381 |
Python Completions | 641 |
Crystal Completions | 8 |
Ruby Completions | 70 |
C++ Completions | 225 |
JavaScript Completions | 442 |
C Completions | 68 |
Total Stars | 52 |
% of votes with a positive feedback rating | 87% of 307 |
Total "Very Satisfied" Votes | 243 |
Total "Somewhat Satisfied" Votes | 51 |
Total "Not Satisfied" Votes | 13 |
Total Rank Assessments | 6 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 7 kyu |