fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. double i=28574.0;
  5. double b,d;
  6. int a;
  7. double c;
  8. scanf("%d", &a);
  9. b=a/i;
  10. d=1-b;
  11. c=4800*d;
  12. printf("%lf",c);
  13. return 0;
  14. }
Success #stdin #stdout 0.01s 5284KB
stdin
1070
stdout
4620.256177