Diamond Pattern
Easy📝 Description
Print diamond star pattern with 2n-1 rows
Input Format
A single integer n
Output Format
Diamond pattern
Constraints
1 ≤ n ≤ 20
🔍 Sample Input
3
✅ Sample Output
*
***
*****
***
*
Code Editor
Please login to run and submit code.
Results
Suggested Solution
Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run