fork download
  1. #include<stdio.h>
  2. int main()
  3. {
  4. float b,d,h,g;
  5. printf("Enter the value of b:");
  6. scanf("%f",&b);
  7. d=(0.4)*b;
  8. h=(0.2)*b;
  9. g=(b+d+h);
  10. printf("%f",g);
  11. return 0;
  12. }
Success #stdin #stdout 0.01s 5280KB
stdin
100
stdout
Enter the value of b:160.000000