Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

C fahrenheit to celcius

//Create a program that will be able to accept
//a Temperature in Fahrenheit and Print its Equivalent Temperature in celcius.
//The Formula for Converting Fahrenheit to Celcius is C=5/9(F-32)
//Where C is Equivalent to Celcius and F is for Fahrenheit.
#include<stdio.h>
main()
{
	float c,f;
	
	printf("Input The Fahrenheit: ");
	scanf("%f",&f);
	
	c=((f-32)*5)/9;
	
	printf("The Converted Celcius is: %f",c);
}
Source by ideone.com #
 
PREVIOUS NEXT
Tagged: #C #fahrenheit #celcius
ADD COMMENT
Topic
Name
6+5 =