Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

public class Main {

    public static void main(String[] args) {
        double d1 = 1.2, d2 = 3.4, d3 = 1;

        System.out.println("" + d1 + " to the power of " + d2 + " = " + StrictMath.pow(d1, d2));

        System.out.println("" + d1 + " to the power of " + d3 + " = " + StrictMath.pow(d1, d3));
    }
}