fork download
  1. /*write a program to multiplication of given number and their giometric mean*/
  2.  
  3. #include<stdio.h>
  4. #include<math.h>
  5. int main()
  6. {
  7. float x,y,t,z,mul,gm;
  8. printf("enter the four number to be multiply : ");
  9. scanf("%f%f%f%f",&x,&y,&t,&z);
  10. mul=x*y*t*z;
  11. gm=pow(mul,0.25);
  12. printf("multiplication of given four number:%f\n",mul);
  13. printf("gm of given number:%f",gm);
  14. return 0;
  15.  
  16. }
Success #stdin #stdout 0s 5280KB
stdin
Standard input is empty
stdout
enter the four number to be multiply : multiplication of given four number:-0.000000
gm of given number:0.000000