Skip to content

Instantly share code, notes, and snippets.

@TheLouisHong
Created October 17, 2013 15:41
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 TheLouisHong/7027209 to your computer and use it in GitHub Desktop.
Save TheLouisHong/7027209 to your computer and use it in GitHub Desktop.
Another Martinos HW
public class PrintOneOverN {
public static void main(String[] args) {
int finalDinominator = 20;
for (double i = 1; i <= finalDinominator; i++) {
System.out.println(1d/i);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment