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 174 views
1 answer 155 views
2 answers 185 views
1 answer 124 views
2 answers 125 views
1 answer 203 views
...