Building pyramids
Statement
Goal
You must output a pyramid of height h using #'s and each level of the pyramid must be d #'s shorter than the one below from both sides.Input
Two space-separated integers h and d
Output
h lines of spaces and #'s representing each level of the pyramid.
Constraints
1 ≤ h ≤ 10
1 ≤ d ≤ 6
1 ≤ d ≤ 6
Example
Input
5 1
Output
## #### ###### ######## ##########
Game modes
Fastest, Shortest, Reverse
Test cases
Normal pyramid Test
Input
5 1
Output
##
####
######
########
##########
Higher normal pyramid Validator
Input
6 2
Output
####
########
############
################
####################
########################
Super small pyramid Test
Input
1 1
Output
##
Still small pyramid Validator
Input
2 1
Output
##
####
Wide pyramid Test
Input
3 6
Output
############
########################
####################################
Even wider pyramid Validator
Input
4 7
Output
##############
############################
##########################################
########################################################
Huge pyramid Test
Input
8 5
Output
##########
####################
##############################
########################################
##################################################
############################################################
######################################################################
################################################################################
Pyramid of Giza Validator
Input
10 6
Output
############
########################
####################################
################################################
############################################################
########################################################################
####################################################################################
################################################################################################
############################################################################################################
########################################################################################################################
Solution language
Solution
Stub generator input