forked from blau_araujo/pbn
exemplos da aula 5
This commit is contained in:
parent
7df3f44f24
commit
0f2dad4b0c
2 changed files with 30 additions and 0 deletions
13
curso/exemplos/05/soma.c
Normal file
13
curso/exemplos/05/soma.c
Normal file
|
@ -0,0 +1,13 @@
|
|||
#include <stdio.h>
|
||||
|
||||
int soma(int a, int b) {
|
||||
return a + b;
|
||||
}
|
||||
|
||||
int main() {
|
||||
int x = 10;
|
||||
int y = 20;
|
||||
int r = soma(x, y);
|
||||
printf("Soma: %d\n", r);
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue