fork download
  1.  
  2.  
  3. #include <stdio.h>
  4. int main ()
  5. {
  6.  
  7. int clockNumber = 98401;
  8. float gross = 540.60;
  9. float hours = 51.0;
  10. float wageRate = 10.60;
  11.  
  12. printf ("\n\t*** Pay Calculator ***\n");
  13.  
  14.  
  15. printf ("\n\n\t----------------------------------------------------------\n");
  16. printf ("\tClock # Wage Hours Gross\n");
  17. printf ("\t----------------------------------------------------------\n");
  18.  
  19. printf ("\t%06i %5.2f %5.1f %7.2f\n", clockNumber, wageRate, hours, gross);
  20.  
  21. return (0); // success
  22.  
  23. } // main
Success #stdin #stdout 0s 5280KB
stdin
98401
10.60
51.0
stdout
	*** Pay Calculator ***


	----------------------------------------------------------
	Clock # Wage Hours Gross
	----------------------------------------------------------
	098401 10.60  51.0  540.60