fork download
  1. #include<conio.h>
  2. #include<stdio.h>
  3. int main()
  4. {
  5. int t;
  6. float s;
  7. scanf("%f", &s);
  8. if(s<=0,8)
  9. {
  10. t+=10000;
  11. }
  12. else
  13. {
  14. if(s>0,8&&s<=30,8)
  15. {
  16. t=10000+11000*(s-0,8);
  17. }
  18. else
  19. {
  20. t=10000+11000*30+10000*(s-30,8);
  21. }
  22. }
  23. t=(t/1000)*1000;
  24. int k=t%1000;
  25. if(k>=500)
  26. {
  27. t= t - k + 1000;
  28. }
  29. else
  30. {
  31. t = t - k;
  32. }
  33. printf("%0.f", &t);
  34. return 0;
  35. }
  36.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
20.56
compilation info
prog.c:1:18: fatal error: conio.h: No such file or directory
 #include<conio.h>
                  ^
compilation terminated.
stdout
Standard output is empty