-
-
Save talilotarlison/00c57b4fada6ca2d7dc0733c00fb3571 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 : Talilo Tarlison | |
| // Data : 17/05/2025 | |
| // 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