hello all;
i'm having a problem with my output. the program that i'm writing is supposed to take a number input than display the output as asterisks. so if the input is 4 the output should be:
*
**
***
****
however, i'm just getting a single column of asterisks. i know its late and i'm probably making a mental err. thanks for the help:
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
int input_1;
int count;
input_1 = 0;
count = 0;
cout<< "Enter any positive number : ";
cin>>input_1;
cout<< input_1 << endl; //this is to test the input only
//need to verify for a positive number and make sure that letters are not used
for (count = 0; count < input_1; count++)
{
for (count = 0; count < input_1; count++)
cout<< " * " <<endl;
}
return 0;
}