I think i got it. Thanks for all your help Salem, it is highly appreciated. Apparently bools are required for this. Would have saved me hours of trying.
Thanks for everything sir. :)
Type: Posts; User: AlmondSeason
I think i got it. Thanks for all your help Salem, it is highly appreciated. Apparently bools are required for this. Would have saved me hours of trying.
Thanks for everything sir. :)
Okay I swapped the locations of the two variables.
My cout statement still isn't giving me meaningful numbers though. I'm sure this is getting tiresome, but I appreciate all the help.
//...
I had to have missed something in class, this assignment can't be this difficult.
So we needed another variable with the same value as i ?
I'm not sure I understand...
// Alen
// Prime
//
Could you explain how that differs from what I have up top?
for (i=2; i < user_input; i++)
Essentially all that does is list the numbers from 2 to n.
How do I go about dividing each of the...
I want to modulate the user_input by every number less than the value of user_input. I just don't understand how to code it.
> The assignment has already been turned in
If you've posted what you turned in, you just got either D- or F.
>I'm not disputing that.
> Use a loop to iterate on a variable, i, from 2 through n....
So I'm new at all of this programming jazz and I could really use some help. The assignment has already been turned in, I would just like to figure this out before we move in class. Teacher isn't in...