-
-
Save talilotarlison/706e973a5a0e5beeb7656ea3921e09e7 to your computer and use it in GitHub Desktop.
Converter Farenheit para Celsius em visualg.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| algoritmo "farenheitCelsius" | |
| // Função : Faça um Programa que peça a temperatura em graus Farenheit, | |
| // transforme e mostre a temperatura em graus Celsius. | |
| // C = (5 * (F-32) / 9). | |
| // Autor : Samuel T. C. Santos | |
| // Data : 17/11/2014 | |
| // Seção de Declarações | |
| var | |
| celsius , farenheit : real | |
| inicio | |
| // Seção de Comandos | |
| escreva("Farenheit? ") | |
| leia(farenheit) | |
| celsius <- 5 * (farenheit - 32) / 9 | |
| escreval("celsius = ", celsius) | |
| fimalgoritmo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment