How to raise to the power of in C

1 Answer

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

int main() {
    printf("%d", (int)pow(2, 4));
    
    return 0;
}
  
  

  
/*
run:
  
16

*/

 



answered Dec 28, 2020 by avibootz

Related questions

1 answer 165 views
1 answer 146 views
2 answers 174 views
1 answer 111 views
2 answers 116 views
1 answer 183 views
...