Results 1 to 3 of 3
Thread: Nest for loop problem
- 05-16-2012, 06:18 AM #1
Member
- Join Date
- May 2012
- Posts
- 1
- Rep Power
- 0
- 05-16-2012, 11:58 AM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,406
- Blog Entries
- 7
- Rep Power
- 17
Re: Nest for loop problem
Consider the inner loop: all values of j (0,1,2, ...,99) are printed except value 41; that makes 99 different values and the highest number printed is 99. That entire loop itself is executed 10 time because of the outer loop, so in total 10*99 == 990 lines are printed.
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 05-16-2012, 06:09 PM #3
Similar Threads
-
Problem with while loop, assigning a variable with a different value every loop? Help
By JavaProg in forum New To JavaReplies: 2Last Post: 11-07-2011, 02:25 AM -
For Loop Problem
By saqib15 in forum New To JavaReplies: 6Last Post: 02-20-2010, 12:59 AM -
Nest Try
By arefeh in forum New To JavaReplies: 20Last Post: 02-05-2010, 05:02 PM -
simple line problem / for loop problem
By helpisontheway in forum New To JavaReplies: 1Last Post: 11-17-2009, 06:12 AM -
While-loop problem
By jimmy-lin in forum New To JavaReplies: 6Last Post: 11-02-2009, 03:10 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks