TORONTO KIDS COMPUTER CLUB | Markham Saturday 14:00 Java Homework 20.01.11.
16861
post-template-default,single,single-post,postid-16861,single-format-standard,ajax_fade,page_not_loaded,,no_animation_on_touch,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.10.0,vc_responsive

Markham Saturday 14:00 Java Homework 20.01.11.

15 Jan Markham Saturday 14:00 Java Homework 20.01.11.

Question 1:
Write a method to find the base to the exponent of a number
for example: 2^5=32 , 3^4=81

In the input first number is the base and the second number is the exponent

Sample Input 1:
2
5

Sample Output 1:
32

Sample Input 2:
3
4

Sample Output 2:
81

Sample Input 3:
9
2

Sample Output 4:
81

No Comments

Sorry, the comment form is closed at this time.