repl.it
@anonymous/

DevotedEquatorialAztecant

Java

No description

fork
loading
Files
  • Main.java
Main.java
1
2
3
4
5
6
7
8
9
10
11
class Main
{
  public static void main ( String args[] )
    { 
      double[] nums  = {126, 12.939, 795, 320.16,
                 110, 34.7676, 7773, 67, 567, 323};
    
      for(int i = 0; i < nums.length ; i++ )
        System.out.println ("Square of " + nums[i] + " is " + Math.pow(nums[i],2));
    }
}
Fetching token
?