-
ماهو مخرجات البرنامج التالي:
<BLOCKQUOTE> <font> كود: </font> <div align="ltr"> <center> <table border="0" width="80%" dir="ltr" bgcolor=="#000000"> <tr> <td width="100%"> <pre> <font color="#ffffff">
#include <stdio.h>
main()
{
int a =-1;
do{
a++;
print a;
}while(a);
}
</font> </pre> </td> </tr> </table> </center> </div> </BLOCKQUOTE>
------------------
أخوكم
أبو ماجد الصارم
azzozhsn@hotmail.com
www.azzozhsn.com
-
i think the programe while not print any thing because
a=-1 and in the equ you say while a ,but you didn't say
while a<3 the do the program
مع تحياتي
-
Thanks, Yes the program while not print any thing because a = -1
the after a++; Statement a=0 then the do loop end (Sory Ican'nt Speak English very will)
------------------
أخوكم
أبو ماجد الصارم
azzozhsn@hotmail.com
www.azzozhsn.com
-
الى الاخ العزيز
اسف لكتابتي باللغة الانجليزية
الا اني كتبت بالعربي ومحد عبرني فكتبت بالانقليزي ثم علشان الحروف الفيربل بالانقليزي
مع تحياتي
-
ضوابط المشاركة
- لا تستطيع إضافة مواضيع جديدة
- لا تستطيع الرد على المواضيع
- لا تستطيع إرفاق ملفات
- لا تستطيع تعديل مشاركاتك
-
قوانين المنتدى
أضف موقعك هنا |
اضافة محتوى فريد لموقعك