Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
proftucker
proftucker's Profile
1
Posts
1
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
Decrement in for loop…
[2 Replies]
04-Mar-2012 05:19 PM
Forum:
Programming Questions
I have searched the forum and can't find an answer to this question; apologies if it has already been answered.
I'm trying to run a FOR loop with a decrement counter, e.g.:
println("Start of Loop");
for(int b=10; b<0; b--){
println("In the loop");
println(b);
}// next b
println("End of Loop");
The console output is:
Start of Loop
End of Loop
I.e., the FOR loop isn't even being executed. Any and all ideas welcome. Thanks!
«Prev
Next »
Moderate user : proftucker
Forum