A conversão de graus Fahrenheit para...?

A conversão de graus Fahrenheit para centígrados é obtida pela fórmula C = 5/9*(F-32). Escreva um algoritmo que calcule e imprima na tela uma tabela de graus centígrados em função de graus Fahrenheit sendo que os graus Fahrenheit variam de 50 a 150 de 1 em 1.

(PESSOAL A PRIMEIRA PARTE QUE TRATA DA CONVERSÃO DAS TEMPERATURAS EU CONSEGUI IMPLEMENTAR ,MAS A SEGUNDA PEDE PARA DEIXAR CENTÍGRADOS EM FUNÇÃO DE FAHRENHEIT,NÃO CONSIGO ENCONTRAR UMA CONTINUAÇÃO NO MESMO ALGORITMO) PS: estou tentando no VisuALG 2.0

Algoritmo "Celsius"

Var

F,C:REAL

Inicio

ESCREVAL ("Colocar a temperatura em Fahrenheit")

LEIA (F)

C <- (F-32)*(5/9)

ESCREVAL ("Conversor de Temperatura")

ESCREVAL ("A temperatura é ",C, " Graus Celsius")

Fimalgoritmo

(fico agradecido com a possível resolução ou dicas!)

Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Helpful Social

Copyright © 2024 QUIZLS.COM - All rights reserved.