#include <iostream>
#include<string>
int main() {
for(int i = 0; i <= 10; ++i) {
std::string triangle(i, '*');
std::cout << triangle << std::endl;
}
for(;;) std::cin.get();
return 0;
}
As title says is this code ok or should i do it another way?