PDA

View Full Version : Times ten


army7696
Aug 4, 2011, 09:23 PM
a module called, times ten. The module should accept an Integer argument. When the module is called, it should display the product of its argument multiplied times ten.

WildProgrammer
Oct 3, 2012, 12:41 PM
#include <stdio.h>

int timeten(int x);

int main(void)
{
int number = 10;
int x = timeten(number);
printf("\n\n%i\n\n",x);
}

int timeten(int x)
{

return (x * 10);
}