answersLogoWhite

0

// asterisk pyramid

#include<iostream>

using namespace std;

int main()

{

int count = 0;

for (int width = 0; width <= 10; width++)

{

for (int alignLeft = width; alignLeft <= 15; alignLeft++)

{

cout << " ";

}

for (int space = 1; space < count; space++)

{

cout << "*";

}

cout << endl;

count += 2;

}

return 0;

}

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

How do you write a program to print numbers from star one and next line star two in php?

Try the triangle program on a search engine. Replace numbers with stars and that should do the trick


What is the name of the star that all stars seem to rotate about?

The North Star!


Does constellation Orion rotate about the pole star?

All the constellations appear to rotate round the pole star because the pole star is in line with the axis that the Earth rotates around with us on board.


How do you draw a seven pointed star?

Draw seven points!


In which direction do cassiopeia and the big dipper rotate around the north star?

Cassiopeia and the Big Dipper appear to rotate counterclockwise around the North Star in the northern hemisphere.


What planets go round the stars?

All 8 planets in our solar system rotate around a star, our sun. Virtually all planets rotate around a star.


How to draw a nautical star?

check out this site... it shows you how to draw a nautical star. hope this helps someone. http://www.dragoart.com/how-to-draw-a-nautical-star-t288-1.htm go die in a hole


What star does not spin?

All stars rotate (spin). Some spin faster than others, but all stars will rotate as without this rotation, the star will literally fall into space.


Why do neutron stars rotate so much more rapidly than ordinary stars?

Neutron stars rotate rapidly due to their conservation of angular momentum. When a massive star collapses into a neutron star, its core spins faster as it contracts. Since angular momentum is conserved, the neutron star continues to rotate rapidly as a remnant of the collapsed star.


Does a planet have to rotate around a star?

No, a planet does not necessarily have to rotate around a star. There are rogue planets that do not orbit any star and instead wander through space independently. These planets are not bound to a specific star and travel alone through the galaxy.


How might one draw a perfect star?

There are a few different types of star that can be drawn including a six pointed star and a five pointed star. Generally the best was to draw a perfect star is either with a lot of practice or to use a stencil.


What powers a star?

Box office draw.