Everything works fine, but the outputted numbers are supposed to be asterisks instead of digits.
Ideas?
#include <iostream>
using std::cout;
using std::cin;
int main ()
{
int number = 0;
char star = '*',
stars = '*';
cout << "Please enter a base number to create the triangle: ";
cin >> number;
for ( int star = 0; star < number; star++ )
{
for ( int stars = star; stars < number; stars++ )
cout << stars << ' ';
cout << '\n';
}
return 0;
}