Results 21 to 27 of 27
- 10-10-2012, 05:37 AM #21
Member
- Join Date
- Oct 2012
- Posts
- 31
- Rep Power
- 0
- 10-10-2012, 05:39 AM #22
Member
- 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.
- 10-10-2012, 05:44 AM #24
Member
- 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
- 10-10-2012, 05:46 AM #25
Member
- Join Date
- Oct 2012
- Posts
- 31
- Rep Power
- 0
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. Re-read the requirements of the program please:
and... the user inputs 2 numbers and it tells you the numbers in between and then i have to find the sum of those numbers,...
This means the sum includes each number in between.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.
- 10-10-2012, 05:55 AM #27
Member
- Join Date
- Oct 2012
- Posts
- 31
- Rep Power
- 0
Similar Threads
-
help w/ storing/scanning numbers in arrays
By clemsontigers in forum New To JavaReplies: 2Last Post: 03-30-2011, 06:46 AM -
[Semi-Beginner] (nested loops) What's wrong with my code? (nested loops)
By Solarsonic in forum New To JavaReplies: 20Last Post: 03-22-2011, 04:02 AM -
help w/ storing/scanning numbers in arrays(what am i doing wrong)
By clemsontigers in forum New To JavaReplies: 4Last Post: 03-15-2011, 03:58 AM -
help w/ storing/scanning numbers in two dimensional arrays
By clemsontigers in forum New To JavaReplies: 15Last Post: 12-02-2010, 02:08 AM -
help w/ storing/scanning numbers in arrays
By clemsontigers in forum New To JavaReplies: 15Last Post: 11-18-2010, 05:12 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks