Averages/Root mean square: Difference between revisions
Content deleted Content added
Added ZX81 BASIC |
→{{header|Java}}: consistent formatting, cleanup |
||
Line 785:
=={{header|Java}}==
<lang java>public class
public static double
for (double num
return Math.sqrt(
}
public static
double[] nums = {1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0};
System.out.println("The RMS of the numbers from 1 to 10 is " +
}
}</lang>
|