Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def main(m, z, a, n):
- result1 = 0
- result2 = 0
- k = 1
- while k <= m:
- result1 += 45 + z ** 3 + 63 * k + 1
- k += 1
- j = 1
- while j <= n:
- c = 1
- while c <= a:
- k = 1
- while k <= m:
- result2 += j ** 4 + (38 * k ** 3 - 9 * c) ** 5 + 98 * c
- k += 1
- c += 1
- j += 1
- result = result2 + result1
- result = float('{:.2e}'.format(result))
- return result
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement