C-Programs
Tuesday, 29 August 2017
C Program for Converting Farenheit to Celcius
/* Convert Farenheit to Celcius */
#include<stdio.h>
int main()
{
float c,f;
printf("Type farenheit : ");
scanf("%f",&f);
c = (f - 32) * 5/9;
printf("celcius: %f",c);
return 0;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment