Skip to content

Instantly share code, notes, and snippets.

@benwilson512
Created June 30, 2011 04:05
Show Gist options
  • Save benwilson512/1055611 to your computer and use it in GitHub Desktop.
Save benwilson512/1055611 to your computer and use it in GitHub Desktop.
int[] x = [1,2,3,4,5]
int[] y;
for(int i = 0; i < x.length; i++) {
y[i] = Math.exp(x[i], 2);
}
@benwilson512
Copy link
Author

and if you wanted to print that you'd have to do
System.out.println("output: " + y) and i'm not entierly sure that'd get you a nice rendering of the actual contents.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment