⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 prog1

📁 我搜集的C 语言教程
💻
字号:
/*  PARESH CHHOTUBHAI
    CS 362A : " C " LANGUAGE
    SPRING 1988
    ASSIGNMENT #1
    " C " WORKBOOK : PAGE 26, 26A
    DUE DATE : APRIL 14,1988
    MR. DAVID JOHNSON
*/
/*  Program with function to triple a number */

/*  This program has a main program
    and a function called triple ().
    This function  calculates
    and returns three times its input parameter.
*/  

main()
{
int answer; /*  working integer variable */

    answer = triple (5);
    printf ("The result is %d", answer);
}

/*  The function  triple  starts here. */
    
triple (n)
int n;          /* declaration of function parameter */
{
    return (n + n + n);  /* triples the input parameter */
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -