fork download
  1. #include<stdio.h>
  2.  
  3. int main()
  4. {
  5. printf("Enter temperature in celcius: ");
  6. int C;
  7. scanf("%d",&C);
  8. float K=C+273,F=(9*(float)C/5)+32 ;
  9. printf("Fahrenheit: %.2f \nKelvin: %.2f",F,K);
  10. }
  11.  
Success #stdin #stdout 0.01s 5324KB
stdin
Standard input is empty
stdout
Enter temperature in celcius: Fahrenheit: 59010.80 
Kelvin: 33039.00