Your first function · 你的第一个函数
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version. · 此页面需较新浏览器(支持 SharedArrayBuffer)。请升级 Chrome、Edge、Firefox 或 Safari 至最新版本。
English
Your first function
Now write a function. Don't write main — the checker adds one that calls your function with several inputs (your code is saved as student.c). Complete twice so it returns n times two.
中文
你的第一个函数
现在来写一个函数。不要写 main —— 检查器会加一个 main,用多个输入调用你的函数(你的代码会保存为 student.c)。完成 twice,让它返回 n 的两倍。
Complete int twice(int n) so it returns n times two. Do not write main. · 完成 int twice(int n),让它返回 n 的两倍。不要写 main。
Click Run to see the output here. · 点击“运行”查看此处输出。