Escreva um programa c++ para ler uma temperatura em graus fahrenheit, calcular e escrever o valor correspondente

em graus celsius (baseado na formula abaixo):

celsius = 5*(fahrenheit - 32)/9

1 Resposta

  • Carlosmucuripbdm

    #include stdio.h int main(void){ double tempcel, tempfah; printf("digite uma temperatura em graus fahrenheit: "); scanf("%lf", & tempfah); tempcel = 5*(tempfah - 32)/9; printf("%.2lf em fahrenheit = %.2lf graus celsius", tempfah, tempcel); return(0); } fiz em c q ajude..

Clique aqui para adicionar a sua resposta.