+ 1

Why it doesn't prints a number?

I need help https://code.sololearn.com/cmEEkVL4t7qS/?ref=app

5th Dec 2017, 9:54 PM
JuanFra Cuevas
JuanFra Cuevas - avatar
1 Odpowiedź
+ 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); }
5th Dec 2017, 11:17 PM
Zeke Williams
Zeke Williams - avatar