|Print a pyramid pattern of stars with N rows....|General Coding Problems

fn print_pyramid(n: u32)

Easy

Print a pyramid pattern of stars with N rows.

fn print_pyramid(n: u32)

Asked in

tcs

Examples

Example 1:
Input: 3
Output: * *** *****
Example 2:
Input: 1
Output: *
Submit Result

Click Run to test sample cases, or Submit to evaluate all cases