How to draw this triangle using for loops in ncurses

#include <iostream>
using namespace std;
int main()
{
for (int x=1;x<=7;x++)
{
for(int i=1;i<=x;i++)
cout<<"*";
cout<<endl;
}
return 0;
}
Topic archived. No new replies allowed.