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. · اضغط تشغيل لرؤية المخرجات هنا.