📄 prog1
字号:
/* 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 + -