User Profile
Collapse
-
Thank you very much, that worked great. I had tried the for loop in my program at school but couldn't get the arguments in the parentheses right.... -
What I need it to do is go through the loop and display the message on the screen a certain number of times. For example the command prompt comes up and asks 'How many hellos do you want' and the user types in 3 then the program should display 'Hello' 3 times....Leave a comment:
-
Thanks for the fast reply. I'm at home right now and don't have the full project with me but I think is the closest we got to it working even though its not even close to being right.
...Code:#include <iostream> using namespace std; int main() { int counter = 0; cout << "Enter the number of hellos.\n" << " "; cin >> counter;Leave a comment:
-
Looping Help?
Hi, I'm working on an easy assignment only I can't get it working properly. All the program needs to do is accept the user-input value and display a message that many times. What I'm having trouble with is the syntax for getting the message to display x amount of times per the user-inputted variable. I'm sure this is an easy solution but I'm going nuts trying to figure it out. Any help is greatly appreciated.
Oh and I'm working...
No activity results to display
Show More
Leave a comment: