Integers Come In All Sizes - Python math solution.

Integers Come In All Sizes - Python math solution.

Instructor-svgAl-Mamun Sarkar
Mar 26 , 2020

Integers Come In All Sizes - Python math solution. The following shows how to solve the HackerRank Integers Come In All Sizes Python Math problem.

Code:

a = int( input() )
b = int( input() )
c = int( input() )
d = int( input() )

print( pow(a, b) + pow(c, d) ) 

 

Test Input:

9
29
7
27

Test Output:

4710194409608608369201743232
  • Share On:
  • fb
  • twitter
  • pinterest
  • instagram