Mega Code Archive

 
Categories / C / Code Snippets
 

How to use pow

#include <math.h> #include <stdio.h> int main(void) { double j = 10.0, k = 0.0; do { printf("%f\n", pow(j, k)); k++; } while(k<11.0); return 0; }