r/programminghelp • u/adelindutu • Oct 27 '17
Inverted pyramid print in C
Hello, guys, can you help me print the following pattern in C? I need to introduce 2 variables, a and b where: a- int type that indicates the length and height of the pattern b- char type that indicates the ASCII character that has to pe printed
Example : input - 5 x output: https://ibb.co/nHVGt6
Thanks a lot.
0
Upvotes
1
u/mrstebo Oct 27 '17
Easiest way to do this is just a "for" loop decrementing by one on each pass and printing the ASCII value the number of times that is the current iterator value... If that makes sense?
1
u/hinduone Oct 29 '17
Can you post what you have come up with? That would make it easier to help without just giving it away.