Last active
October 28, 2020 13:24
-
-
Save catalunha/7cfff0c3c49b8da5b23b60ce0ea4c741 to your computer and use it in GitHub Desktop.
Programa Calculadora Paradigma Procedural
This file contains 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
/// Funcao que calcula a soma | |
int soma(int num1, int num2) { | |
return num1 + num2; | |
} | |
/// Programa Calculadora Abordagem ou Paradigma Procedural | |
void main() { | |
//Entrada | |
int numero1 = 1; | |
int numero2 = 2; | |
//Processamento | |
int resultado = soma(numero1, numero2); | |
//Saida | |
print('Soma $numero1 + $numero2 = $resultado'); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment