Results 21 to 27 of 27
 10102012, 05:37 AM #21Senior Member
 Join Date
 Oct 2012
 Posts
 176
 Rep Power
 5
 10102012, 05:39 AM #22Member
 Join Date
 Sep 2012
 Posts
 68
 Rep Power
 0
Re: I need help storing numbers in loops
thanks man

Re: I need help storing numbers in loops
It's not summing the numbers. Try using 1 and 100 as the two inputs and see if you get 5050 as basic math and Carl Friedrich Gauss would say you should.
 10102012, 05:44 AM #24Member
 Join Date
 Sep 2012
 Posts
 68
 Rep Power
 0
Re: I need help storing numbers in loops
Actually, thanks to all of you that tried to help also
 10102012, 05:46 AM #25Senior Member
 Join Date
 Oct 2012
 Posts
 176
 Rep Power
 5
Re: I need help storing numbers in loops
no Thats not what i get my code works fine i get the numbers between 1 and 100 although it does reapeat the line"The numbers between 1 and 100 are" but i didnt fix that because i still want him to make little adjusments like that. And then it tells me the sum is 101.

Re: I need help storing numbers in loops
But 101 is not correct. Reread the requirements of the program please:
... the user inputs 2 numbers and it tells you the numbers in between and then i have to find the sum of those numbers,...
Pretty much if you enter the two numbers 1 and 4 it needs to add the numbers 1,2,3,4 and im not sure how to do that. obviously the sum would be 10 but i dont know how to get it to add them up.
 10102012, 05:55 AM #27Senior Member
 Join Date
 Oct 2012
 Posts
 176
 Rep Power
 5
Similar Threads

help w/ storing/scanning numbers in arrays
By clemsontigers in forum New To JavaReplies: 2Last Post: 03302011, 06:46 AM 
[SemiBeginner] (nested loops) What's wrong with my code? (nested loops)
By Solarsonic in forum New To JavaReplies: 20Last Post: 03222011, 05:02 AM 
help w/ storing/scanning numbers in arrays(what am i doing wrong)
By clemsontigers in forum New To JavaReplies: 4Last Post: 03152011, 04:58 AM 
help w/ storing/scanning numbers in two dimensional arrays
By clemsontigers in forum New To JavaReplies: 15Last Post: 12022010, 03:08 AM 
help w/ storing/scanning numbers in arrays
By clemsontigers in forum New To JavaReplies: 15Last Post: 11182010, 06:12 AM
Bookmarks