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 — הבודק יוסיף אחד שקורא לפונקציה שלך עם מספר קלטות (הקוד שלך נשמר כ-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. · לחץ על הרץ כדי לראות את התוצא כאן.