Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.math.*;
- import java.util.Scanner;
- public class zadaca4 {
- public static void main (String [] args) {
- double first,second,power;
- Scanner in = new Scanner(System.in);
- System.out.println("Enter #2 numbers: ");
- first = in.nextDouble();
- second = in.nextDouble();
- power = Math.pow(first, second);
- System.out.println(power);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement