+ 1
Why it doesn't prints a number?
I need help https://code.sololearn.com/cmEEkVL4t7qS/?ref=app
1 Resposta
+ 2
your sin () function takes three parameters and you don't pass any. On top of that, you try to take input inside the sin() function for the variables you've declared as being arguments. Do this instead:
void sin (int hi, int op) {
int result = op / hi;
cout<<result;
}
int main() {
int op, hi;
cin>>op>>hi;
sin (op, hi);
}