fork download
  1. #include <stdio.h>
  2. main()
  3. {
  4. float timein,timeout,hour,sum;
  5.  
  6. printf("What you Time in : "); scanf("%f",&timein);
  7. printf("What you Time out : "); scanf("%f",&timeout);
  8.  
  9. hour = timeout - timein;
  10. printf("Time : %.2f \n",hour );
  11. if (hour>8.00) {
  12. printf("You only pay 200 bro");
  13. return 0 ;
  14. } else {
  15. sum = hour * 15;
  16. }
  17.  
  18. printf("You need to pay %.2f ",sum );
  19. }
Success #stdin #stdout 0.01s 5320KB
stdin
Standard input is empty
stdout
What you Time in : What you Time out : Time : 0.00 
You need to pay 0.00