Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void soma(int N)
- {
- int resultado;
- resultado = N+1;
- printf("O resultado eh:%d", resultado);
- }
- int main()
- {
- int n;
- printf("Digite um valor para n: ");
- scanf("%d", &n);
- soma(n);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement