fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int celsius;
  5. scanf("%d", &celsius);
  6. int kelvin = 273 + celsius;
  7. float farenheit = 1.8 * celsius + 32; // To make it a float
  8. printf("%f %d\n", farenheit, kelvin);
  9. return 0;
  10. }
  11.  
Success #stdin #stdout 0s 2056KB
stdin
Standard input is empty
stdout
32.000000 273