a^b (Set 1)

 a^b  (Set 1)

Problem Description:

Write a java program to find a^b, a and b are the two positive integer numbers read from the user and display the a^b.


watch the video to learn more(tamil) 

Logic Test Case 1

Input (stdin)
6 3

Expected Output


Logic Test Case 2

Input (stdin)
5 2

Expected Output


Code area ( don't copy )

import java.io.*;

import java.util.Scanner;

public class TestClass {

public static void main(String[] args) { 

       Scanner sc= new Scanner(System.in);

       int a = sc.nextInt();


// please watch the video to learn more.....

Post a Comment