Hellooo
Last edited on
I guess you need to print the amount of '*' according to the value.
To do this you could create a string with the amount of '*' and print it.
see ctor 6 - fill
http://www.cplusplus.com/reference/string/string/string/
Another option would be to use a for loop to print the all the '*'
Last edited on
One of our conditions is to use for loops.
I was thinking along the lines of:
for(int n = 0; n<arr; n++){
cout <<"* ";
}
But that gives an error that I cant compare int with arrays? hah
Obviously that is just a guideline that Im trying to work around.