i need to make a triangle like this
____*
___**
__***
_****
*****
_ indicates spaces
heres what i have so far...when i compile it all it does is end the program...im quite stuck...im new to the programming thing..so any help will be appreicated
#include <iostream>
using namespace std;
int main ()
{
int lines;
int spaces;
int dots ;
cout << "How many lines do you want in the picture?\n";
cin >> lines;
for ( lines = 1; lines == 0; lines++){
for (spaces = lines - 1; spaces <= 0; spaces-- ){
cout << "_";
for (dots = 1; dots <= lines; dots++ ){
cout << '*';}
cout << endl;}}
return 0; }
thank you