fork download
  1. #include <stdio.h>
  2.  
  3. int main(){
  4. float C,F,f,K,A,a;
  5. F = (1.8);
  6. f = (32);
  7. K = (273.15);
  8.  
  9. printf("Enter Celsius value C:");
  10. scanf("%f", &C);
  11. A = (C*F+f);
  12. a = (C+K);
  13. printf("Celsius value C:%15.2f\nDegrees Fahrenheit F:%10.2f\nKelvin degrees K:%15.2f\n",C,A,a);
  14.  
  15.  
  16. return 0;
  17. }
Success #stdin #stdout 0s 5288KB
stdin
Standard input is empty
stdout
Enter Celsius value C:Celsius value C:           0.00
Degrees Fahrenheit F:     32.00
Kelvin degrees K:         273.15