Your first function
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version.
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.
Complete int twice(int n) so it returns n times two. Do not write main.
Click Run to see the output here.