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 }