// draw a right-angled triangle with sides equal to the input number n #include using std::cout; using std::cin; using std::endl; // function main int main() { int lunghezza; int number = 1; cout << " Side lenght: "; cin >> lunghezza; while (number <= lunghezza) { for(int i = 1; i<= number; i++) cout << "* "; cout << endl; number++; } //end while return 0; // successful termination } // end main