Write the definition of a function twice, that receives an integer parameter and returns an integer that is twice the value of that parameter.
.
.
Click on the title for the solution
.
.
int twice (int x)
{int y=x*2;
return y;}
.
Click on the title for the solution
.
.
This is the answer:
:
int twice (int x)
{int y=x*2;
return y;}
Comments
Post a Comment