learning-cc4e

Solution to https://cc4e.com/. If you copy these you're not right in the head.
git clone https://kaka.farm/~git/learning-cc4e
Log | Files | Refs

solution.c (131B)


      1 void calcpay(p,r,h)
      2     float *p,r,h;
      3 {
      4   if (h <= 40) {
      5     *p = r * h;
      6   } else {
      7     *p = 1.5 * r * (h - 40 ) + (r * 40);
      8   }
      9 }