Your first function · Fungsi pertama anda
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.
Fungsi pertama Anda
Sekarang tulis fungsi. Jangan tulis main — penguji menambahkan satu yang memanggil fungsi Anda dengan beberapa input (kode Anda disimpan sebagai student.c). Lengkapi twice agar mengembalikan hasil n dikali dua.
Complete int twice(int n) so it returns n times two. Do not write main. · Selesaikan int twice(int n) supaya ia mengembalikan hasil darab n dengan dua. Jangan tulis main.
Click Run to see the output here. · Klik Jalankan untuk melihat output di sini.