+ 2

Use only C++,,,

if an user gives the value of n=4 then the above output come . * * * * * * * * * *

19th Oct 2017, 1:06 PM
Arun
7 odpowiedzi
+ 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
20th Oct 2017, 9:27 AM
Vari93
Vari93 - avatar
+ 3
The same pattern I guess, you must to put in "second" column 2 more, up and down and make a new 3 column
19th Oct 2017, 1:30 PM
Daniel
Daniel - avatar
+ 2
for n=5 if an user gives the value of n=5 then the above output come . * * * * * * * * * * * * * * *
19th Oct 2017, 2:43 PM
Arun
+ 1
19th Oct 2017, 1:48 PM
Daniel
Daniel - avatar
+ 1
n=1 * ------------------------------------------------------------- n=2 * * * ------------------------------------------------------------- n=3 * * * * * * ------------------------------------------------------------- n=4 * * * * * * * * * * ------------------------------------------------------------- n=5 * * * * * * * * * * * * * * * ------------------------------------------------------------- n=6 * * * * * * * * * * * * * * * * * * * * * ------------------------------------------------------------- n=7 * * * * * * * * * * * * * * * * * * * * * * * * * * * * ------------------------------------------------------------- n=8 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ------------------------------------------------------------- n=9 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ------------------------------------------------------------- n=10 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
20th Oct 2017, 6:19 AM
Daniel
Daniel - avatar
0
Give example for n=5
19th Oct 2017, 1:20 PM
Kartik
Kartik - avatar
0
i appreciate your efforts but why u send all this 😌😌
20th Oct 2017, 8:23 AM
Arun