View Single Post
  #1 (permalink)  
Old 12-11-2007, 02:18 PM
javaplus javaplus is offline
Member
 
Join Date: Nov 2007
Posts: 97
javaplus is on a distinguished road
Change my for loop
Code:
int a = 1; // a gets value from user int j=0; for(int i=a;i<10;i++) { // code goes here j = j++; if(j==10) break; }
I have the following piece of code. How can I alter for loop so that I can remove the while condition form my code.

Please advice.
Reply With Quote
Sponsored Links