Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Helloworld {
- public static void main(String[] args) {
- Scanner input = new Scanner(System.in);
- System.out.println("a b pow(a, b)");
- System.out.println("1 2 " + (int)Math.pow(1, 2));
- System.out.println("2 3 " + (int)Math.pow(2, 3));
- System.out.println("3 4 " + (int)Math.pow(3, 4));
- System.out.println("4 5 " + (int)Math.pow(4, 5));
- System.out.println("5 6 " + (int)Math.pow(5, 6));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement