Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- import java.lang.Math;
- public class Main {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- System.out.println("Podaj Podstawę potęgi");
- int a = scanner.nextInt();
- System.out.println("Podaj Wykładnik");
- int b = scanner.nextInt();
- double c = Math.pow(a,b);
- System.out.println( +c );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement