fork download
  1. #include <stdio.h>
  2. #include<math.h>
  3. #include<string.h>
  4. #include<stdlib.h>
  5.  
  6. int main()
  7. {
  8. double Tc=0;
  9. double Tf=0;
  10. int lowerbound = 1;
  11. int upperbound = 15;
  12. int i = upperbound;
  13. while (i >= lowerbound)
  14. {
  15. Tf=20*i;
  16. Tc=((5.0*Tf)-(5.0*32.0))/9.0;
  17. printf("%.2f\t%.2f\n", Tf, Tc);
  18. i--;
  19. }
  20. printf("1.000000 %f\n",((5.0*1)-(5.0*32.0))/9.0);
  21. return 0;
  22. }
Success #stdin #stdout 0s 2292KB
stdin
Standard input is empty
stdout
300.00	148.89
280.00	137.78
260.00	126.67
240.00	115.56
220.00	104.44
200.00	93.33
180.00	82.22
160.00	71.11
140.00	60.00
120.00	48.89
100.00	37.78
80.00	26.67
60.00	15.56
40.00	4.44
20.00	-6.67
1.000000    -17.222222