Advertisement
Guest User

Untitled

a guest
Nov 18th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.49 KB | None | 0 0
  1. public class Helloworld {
  2.     public static void main(String[] args) {
  3.  
  4.         Scanner input = new Scanner(System.in);
  5.  
  6.         System.out.println("a  b  pow(a, b)");
  7.         System.out.println("1  2  " + (int)Math.pow(1, 2));
  8.         System.out.println("2  3  " + (int)Math.pow(2, 3));
  9.         System.out.println("3  4  " + (int)Math.pow(3, 4));
  10.         System.out.println("4  5  " + (int)Math.pow(4, 5));
  11.         System.out.println("5  6  " + (int)Math.pow(5, 6));
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement