Take an integer input from the user and print stars likebelow:
Test case 1:
n = 3
*********
Test case 2:
n = 5
*************************
Test case 3:
n = -3
* ***** ** *
Test case 4:
n = -5
*
**
***
****
*****
****
***
**
*
Take an integer input from the user and print stars like below: Test case 1: n = 3 * ** *** ** * Test case 2: n = 5 * **
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am