Skip to content

Instantly share code, notes, and snippets.

@milkypostman
Created May 1, 2011 22:15
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 milkypostman/950934 to your computer and use it in GitHub Desktop.
Save milkypostman/950934 to your computer and use it in GitHub Desktop.
public class Perc {
public static void main(String[] args) {
int m = 2000000000;
int blah = m / 10;
for (int i = 0; i < m; i++) {
if (i % blah == 0) {
System.out.printf("%d: %f %%\n", i, i/((float)m)*100);
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment