Dec 19, 2020 at 9:24pm Dec 19, 2020 at 9:24pm UTC
hi every one .
im begginer in c++ programing.
our master ask a question about printing a double diamond next to each other.
if we write 2 in cmd :
* *
* * * *
* *
* * <--------------:or tree
* * * *
* * * * * *
* * * *
* *
i will be tnxful :)
unfortunately i cant paint two diamond next to each other
Last edited on Dec 19, 2020 at 9:28pm Dec 19, 2020 at 9:28pm UTC
Dec 19, 2020 at 9:33pm Dec 19, 2020 at 9:33pm UTC
Hello alabhastam,
So what have you tried?
Post what code you have.
Andy
Dec 20, 2020 at 12:10pm Dec 20, 2020 at 12:10pm UTC
What should the display look like? What are you meaning by a 'double diamond'?
Dec 20, 2020 at 1:34pm Dec 20, 2020 at 1:34pm UTC
@seeplus, you can look at the page source to see how he meant it to look:
* *
* * * *
* *
* * <--------------:or tree
* * * *
* * * * * *
* * * *
* *
Still looks a little off, though.
And I have no idea what "or tree" means.
@alabhastam, "new exercise" is a useless title. Something like "printing a double diamond" would be better.
Last edited on Dec 20, 2020 at 1:37pm Dec 20, 2020 at 1:37pm UTC
Dec 20, 2020 at 2:45pm Dec 20, 2020 at 2:45pm UTC
Neat tip, didn't know the whitespace was preserved client-side.