Use what it gives back · استخدم ما تُرجعه
Use what it gives back
double is written for you and returns a number. Call it with 21 and store the answer in answer.
return hands a value back to whoever called the function. That value is not printed — you catch it with =, exactly like any other result.
استخدم ما تعيده
double مكتوبة مسبقاً وتُرجع رقماً. استدعها بـ 21 واحفظ الإجابة في answer.
return تُعيد قيمة لمن استدعى الدالة. هذه القيمة لا تُطبع — تستقبّدها مع =، تماماً مثل أي نتيجة أخرى.
double is written for you and returns a number. Call it with 21 and store the answer in answer. · double مكتوبة مسبقاً وتُرجع رقماً. استدعها بـ 21 واحفظ الإجابة في answer.
Click Run to see the output here. · اضغط تشغيل لرؤية المخرجات هنا.