Skip to content

Instantly share code, notes, and snippets.

@loiane
Created July 9, 2016 18:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save loiane/d649c0196e14c70c3c567b5f501b4232 to your computer and use it in GitHub Desktop.
Save loiane/d649c0196e14c70c3c567b5f501b4232 to your computer and use it in GitHub Desktop.
for (int i=0,j=10;i<j;i++,j--){
System.out.println("i tem valor: " + i +" e j tem valor: " +j);
}
//é o mesmo que
int i = 0;
int j = 10;
while (i<j){
System.out.println("i tem valor: " + i +" e j tem valor: " +j);
i++;
j--;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment