+ 1
What if i want two integers and return its value ???
int timesTwo(int x) { return x*2; }
5 ответов
+ 2
See Piotr Ga's answer.
that will allow you to take in two integers inside a function so you can
x*8;
y*8;
Please like the answers that helped you. This is the way to say thank you :)
It motivates us to provide help and lets us know that you have got ur problem solved. Thankyou :)
+ 1
you mean something like this?:
int timestwo(int y, int x)
{
int result = x*y;
return result;
} ?
0
What do you want the function to do?
Return multiplication of two integers? Multiply both integers *2 separately?
Note that you can only return one value
0
multiply both integers separatly by 8
0
ty frnds for u ur responce