fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. { float a,b,result;
  6.  
  7. printf("Enter the value of a= ");
  8. scanf ("%f",&a);
  9.  
  10. printf("Enter the value of b= ");
  11. scanf ("%f",&b);
  12.  
  13. result= pow((a+b),3);
  14.  
  15. printf("(a+b)^3=%.2f\n",result);
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0.01s 5276KB
stdin
Standard input is empty
stdout
Enter the value of a= Enter the value of b= (a+b)^3=5.89