1
How do I get the variable I used to store value I read in the scanf, passed to the function I created?
Ex:
#include <stdio.h>
int main(){
int a, b;
scanf("%d %d", &a, &b);
}
int soma(int a, b){
int soma;
soma= a+b;
return soma;
}
It’s not just putting after the
scanf
call to the function? Something likeint resultado = soma(a, b);
– hkotsubo
@exact hkotsubo, except his problem is another.
– Maniero