Skip to content

Instantly share code, notes, and snippets.

@catalunha
Last active October 28, 2020 13:24
Show Gist options
  • Save catalunha/7cfff0c3c49b8da5b23b60ce0ea4c741 to your computer and use it in GitHub Desktop.
Save catalunha/7cfff0c3c49b8da5b23b60ce0ea4c741 to your computer and use it in GitHub Desktop.
Programa Calculadora Paradigma Procedural
/// 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