1 2 3 4 5 6 7 8 9 10 11 | #include <stdio.h> #include <math.h> main() { float temp,temp1; printf("Enter the temparature in Celcius :"); scanf("%f",&temp); temp1 = temp + 273; printf("Converted temparature: %.2f K",temp1); } |
Thursday, March 3, 2016
Celcius to Kelvin conversion in C
Labels:
C Programming
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Thank you for commenting. Please wait for response :)