fork download
  1. // C program to illustrate
  2. // power function
  3. #include <math.h>
  4. #include <stdio.h>
  5.  
  6. int main()
  7. {
  8. double x = 6.1, y = 4.8;
  9.  
  10. // Storing the answer in result.
  11. double result = pow(x, y);
  12. printf("%.2lf", result);
  13.  
  14. return 0;
  15. }
Success #stdin #stdout 0.08s 32504KB
stdin
// C program to illustrate 
// power function 
#include <math.h> 
#include <stdio.h> 
  
int main() 
{ 
    double x = 6.1, y = 4.8; 
  
    // Storing the answer in result. 
    double result = pow(x, y); 
    printf("%.2lf", result); 
  
    return 0; 
} 
stdout
Standard output is empty