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

main.c (280B)


      1 #include <stdio.h>
      2 main() {
      3   int empno;
      4   float rate, hours, pay;
      5   void calcpay();
      6 
      7   while(1) {
      8     if ( scanf("%d %f %f",&empno,&rate,&hours) < 3 ) break;
      9     calcpay(&pay, rate, hours);
     10     printf("Employee=%d Rate=%.2f Hours=%.2f Pay=%.2f\n",empno, rate, hours, pay);
     11   }
     12 }