All pastes #764129 Raw Edit

Someone

public text v1 · immutable
·published 2007-11-06 23:40 UTC
rendered paste body
#include<stdio.h>

#define	MAX 10

double celsius(double);

int main (void)
{
	double fahr;
        int contagem = 0;
	printf("Introduza um valor da temperatura em graus fahrenheits : ");
	scanf("%lf",&fahr);
	printf("Fahrenheit <===> Celsius");
	while (contagem < MAX)
	{
		printf("\n%10.1f <===> %.2f", fahr,  celsius(fahr));
                fahr += 0.1;
		contagem++;
	}	
	return 0;
}


double celsius(double f)
{
	return (f-32.0)/1.8;
}