summaryrefslogtreecommitdiffstats
path: root/Java/Method.java
blob: 810dee076893e4e0a32fb78dacf0feb7d8e092e8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.lang.Math;
class Method {
    static void squareIT(double tobesquared){
	    System.out.println( Math.pow(tobesquared,2) );
    }
    public static void main(String[] args) throws java.io.IOException{
		    double squarable;
	            BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		    squarable = Double.parseDouble(input.readLine());
		    squareIT(squarable);

                    
                    
                    

    }
}

//By msglm; Licensed under the AGPL v3