/* Convert Celsius to Fahrenheit */ #include<stdio.h> void main() { float c,f; printf("Enter the temperature in Celcius: "); scanf("%f",&c); f = c * 9/5 + 32; printf("Temperature in Farenheit: %f",f); } /* Convert Farenheit to Celcius */ #include<stdio.h> void main() { float c,f; printf("Farenheit : "); scanf("%f",&f); c = (f - 32) * 5/9; printf("Celcius: %f",c); } /*Convert Meter to Feet*/ #include<stdio.h> void main() { float m,f; printf("Meter : "); scanf("%f",&m); f = 3.2808399 * m; printf("Feet: %f",f); } /* Convert Feet to Meter */ #include<stdio.h> void main() { float m,f; printf("Feet : "); scanf("%f",&f); m = f / 3.2808399; printf("Meter: %f",m); } /*Convert Km to M/cm/mm*/ #include<stdio.h> void main() { float km; char v; float
Comments
Post a Comment