if وelse
if وelse
المتغيرات المُصرَّح عنها داخل التعليمة القصيرة في if متاحة أيضًا داخل أيٍّ
من كتل else.
(يُرجع كلا استدعاءَي pow نتيجته قبل أن يبدأ استدعاء fmt.Println
في main.)
النص الأصلي بالإنجليزية
If and else
Variables declared inside an if short statement are also available inside any
of the else blocks.
(Both calls to pow return their results before the call to fmt.Println
in main begins.)
هذا الدرس للقراءة فقط؛ جرّب المثال في الدرس التالي.