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.  
  16. printf ("\n\n\t----------------------------------------------------------\n");
  17. printf ("\tClock # Wage Hours Gross\n");
  18. printf ("\t----------------------------------------------------------\n");
  19.  
  20. printf ("\t%06i %5.2f %5.1f %7.2f\n", clockNumber, wageRate, hours, gross);
  21.  
  22. return (0);
  23.  
  24. }
Success #stdin #stdout 0s 5308KB
stdin
23456
23.45
46.1
stdout
	*** Pay Calculator ***


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