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

10 lines
169 B
C

#include<stdio.h>
#include<math.h>
int main()
{
printf("(5 ^ 3) ^ 2 = %.0f",pow(pow(5,3),2));
printf("\n5 ^ (3 ^ 2) = %.0f",pow(5,pow(3,2)));
return 0;
}