+ 2
Use only C++,,,
if an user gives the value of n=4 then the above output come . * * * * * * * * * *
7 Respuestas
+ 4
Solved, a lot easier than it looks. Just gotta study the pattern and the answer will be right in front of you 😎 Also checks for valid input.
https://code.sololearn.com/c7jrVd5XDwwK/?ref=app
+ 3
The same pattern I guess, you must to put in "second" column 2 more, up and down and make a new 3 column
+ 2
for n=5
if an user gives the value of n=5 then the above output come .
*
*
* *
* *
* * *
* *
* *
*
*
+ 1
https://code.sololearn.com/c8OX9n730Z0y/?ref=app
First step and coding next ;-)
+ 1
n=1
*
-------------------------------------------------------------
n=2
*
*
*
-------------------------------------------------------------
n=3
*
*
* *
*
*
-------------------------------------------------------------
n=4
*
*
* *
* *
* *
*
*
-------------------------------------------------------------
n=5
*
*
* *
* *
* * *
* *
* *
*
*
-------------------------------------------------------------
n=6
*
*
* *
* *
* * *
* * *
* * *
* *
* *
*
*
-------------------------------------------------------------
n=7
*
*
* *
* *
* * *
* * *
* * * *
* * *
* * *
* *
* *
*
*
-------------------------------------------------------------
n=8
*
*
* *
* *
* * *
* * *
* * * *
* * * *
* * * *
* * *
* * *
* *
* *
*
*
-------------------------------------------------------------
n=9
*
*
* *
* *
* * *
* * *
* * * *
* * * *
* * * * *
* * * *
* * * *
* * *
* * *
* *
* *
*
*
-------------------------------------------------------------
n=10
*
*
* *
* *
* * *
* * *
* * * *
* * * *
* * * * *
* * * * *
* * * * *
* * * *
* * * *
* * *
* * *
* *
* *
*
*
0
Give example for n=5
0
i appreciate your efforts but why
u send all this
😌😌