Advertisement
Guest User

Untitled

a guest
Nov 13th, 2011
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. import java.util.*;
  2. //import java.lang.Math;
  3.  
  4. public class Practicer {
  5.  
  6. public static void main(String[] args) {
  7. Scanner cin = new Scanner(System.in);
  8.  
  9. long base = cin.nextLong();
  10. long power = cin.nextLong();
  11.  
  12. System.out.printf("%.0f",Math.pow(base, power));
  13. //?? why can't import java.lang.Math; ?
  14.  
  15. }
  16. }
  17.  
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement