Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Other Compiled Languages (https://www.askmehelpdesk.com/forumdisplay.php?f=466)
-   -   Times ten (https://www.askmehelpdesk.com/showthread.php?t=591193)

  • Aug 4, 2011, 09:23 PM
    army7696
    times ten
    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.
  • Oct 3, 2012, 12:41 PM
    WildProgrammer
    #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);
    }

  • All times are GMT -7. The time now is 10:05 PM.