How to raise to the power of float numbers in C

1 Answer

0 votes
#include <stdio.h>
#include <math.h>

int main() {
    printf("%f", powf(8.0f, 3.14f));

    return 0;
}
  
  

  
/*
run:
  
685.019043

*/

 



answered Dec 28, 2020 by avibootz
...