RosettaCodeData/Task/Exponentiation-order/C/exponentiation-order.c

11 lines
169 B
C
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
#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;
}