- #1
Demon117
- 165
- 1
I am trying to get a different orientation on this triangle; specifically I want this output:
**********
*********
********
*******
******
*****
****
***
**
*
Here is the code that I have
and it generates this output:
*
**
***
****
*****
******
*******
********
*********
**********
What do I need to change?
**********
*********
********
*******
******
*****
****
***
**
*
Here is the code that I have
Code:
#include <iostream>
using namespace std;
int main ()
{
int lines=10;
int start = 0;
int dots;
while (start < lines) {
// We start at 0, then gradually increment
for (dots = 0; dots <= start; dots++)
cout << "*";
cout << endl;
start++;// Increment
}
system("pause");
return 0;
}
and it generates this output:
*
**
***
****
*****
******
*******
********
*********
**********
What do I need to change?