Przeanalizuj sobie ten kod i rysunek dla prostokąta - na tej podstawie raczej bez problemu uda Ci sie zrobić trójkąt.

#include <iostream>
using namespace std;
int a_side;
int b_side;
int a_index = 0;
int b_index = 0;
int main()
{
cout<<"Wrpowadz długosc boku A"<<endl;
cin>>a_side;
cout<<"Wrpowadz długosc boku B"<<endl;
cin>>b_side;
do {
do {
cout<<"*";
a_index++;
} while (a_index < a_side);
cout<<endl;
b_index++;
a_index = 0;
} while (b_index < b_side);
return 0;
}