import java.util.Arrays; import java.util.Scanner; public class PJJJeden { public static void main(String[] args) { Kwadrat(); } static void Kwadrat(){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); System.out.println(); int b = sc.nextInt(); int result = 1; for(int i = 0; i < b; i++){ result = result * a; } System.out.println(result); } }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter