RosettaCodeData/Task/Exponentiation-order/Dart/exponentiation-order.dart
2023-07-01 13:44:08 -04:00

6 lines
142 B
Dart

import 'dart:math' show pow;
void main() {
print('(5 ^ 3) ^ 2 = ${pow(pow(5, 3), 2)}');
print('5 ^ (3 ^ 2) = ${pow(5, (pow(3, 2)))}');
}