ApoorvKhatreja
Journeyman
ahem....... i may seem very foolish, but could somebody help me out with a c++ program?
i have to write a program which produces the following output -
*
* *
* *
* *
* *
************
(this is actually the border of an equilateral triangle....i dunno why it appears like this over here........i tried to edit it a hundered times......but its coming that way)
and i have to do this using a loop ..........
it's a school assignment and i really need help!!!
its a triangle, empty from inside, and the border has been created by asterisks (*).
i have to write a program which produces the following output -
*
* *
* *
* *
* *
************
(this is actually the border of an equilateral triangle....i dunno why it appears like this over here........i tried to edit it a hundered times......but its coming that way)
and i have to do this using a loop ..........
it's a school assignment and i really need help!!!
its a triangle, empty from inside, and the border has been created by asterisks (*).
Last edited: