Advertisement
Guest User

Untitled

a guest
Dec 20th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.42 KB | None | 0 0
  1. import java.util.Scanner;
  2. import java.lang.Math;
  3.  
  4. public class Main {
  5.  
  6.     public static void main(String[] args) {
  7.  
  8.         Scanner scanner = new Scanner(System.in);
  9.         System.out.println("Podaj Podstawę potęgi");
  10.         int a = scanner.nextInt();
  11.         System.out.println("Podaj Wykładnik");
  12.         int b = scanner.nextInt();
  13.         double c = Math.pow(a,b);
  14.         System.out.println( +c );
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement