/home/caleb/NetBeansProjects/ADSV Java/lab5_CalebFontenot/src/main/java/com/calebfontenot/lab5_calebfontenot/Swap.java |
nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt
nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java
package com.calebfontenot.lab5_calebfontenot;
import java.util.Scanner;
@author
public class Swap {
public static void main(String[] args)
{
Scanner input = new Scanner(System.in);
double base,
power,
output;
System.out.println("Enter the base to calculate: ");
base = input.nextDouble();
System.out.println("Enter the power to calculate: ");
power = input.nextDouble();
output = Math.pow(base, power);
System.out.println(base+"^"+power+" = "+ output);
}
}