fork download
  1. #include<stdio.h>
  2. int main(){
  3. float b,d,h,g;
  4. printf("Enter b");
  5. scanf("%f",&b);
  6. d=(0.4)*b;
  7. h=(0.2)*b;
  8. g=(b+d+h);
  9. printf("Answer is=%f",g);
  10. return 0;
  11. }
Success #stdin #stdout 0s 5316KB
stdin
500
stdout
Enter bAnswer is=800.000000