I have this assignment due fairly soon. I was wondering if anyone could help me on one particular task. I have to make some sort of calculation, when the calculation becomes TRUE i need to add an asterisk to an element in a array, (or however i want to do it).
For example, if calculation is 2, 8 times, i need result 2 to print out 8 asterisks. and for calculation 3. hits 4 times, i need a result 3 to print out 4 times.
result 1 **** result 2 * result 3 ****** result 4 ****
Everytime i run the program the out put should be different.
Now, I dont want the answer, or exactly how to do this.
I just need help with how I would add an asterisk, or a char, everytime something is true or whatever.