Skip to content

Instantly share code, notes, and snippets.

@editnuki
Created May 7, 2012 14:15
Show Gist options
  • Save editnuki/2628020 to your computer and use it in GitHub Desktop.
Save editnuki/2628020 to your computer and use it in GitHub Desktop.
Heikin6.java
public class Heikin6{
public static void main(String[] args){
//int ten;
//ten = new int[][];
int ten[][] = {
{212,43,56,231,125},
{124,46,78,12,5},
{12,45,67,90,12},
{45,90,12},
};
for (int i = 0; i < ten.length;i++){
int sum = 0;
for (int j = 0; j < ten[i].length; j++){
System.out.print("\t" + ten[i][j]);
sum += ten[i][j];
}
System.out.println("\t|" + (double)sum /ten.length);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment