بخصوص محاضرة يوم (الأثنين 21/7/1441)، أرجو مشاهدة المقاطع التالية:
CPIT110 Chapter 5 (#56): 5.2 The while Loop - Part 2 of 6
https://youtu.be/QZsty_FFw_4
CPIT110 Chapter 5 (#57): 5.2 The while Loop - Part 3 of 6
https://youtu.be/pjtqClo07U4
CPIT110 Chapter 5 (#58): 5.2 The while Loop - Part 4 of 6
https://youtu.be/K_PQxGIrkrQ
CPIT110 Chapter 5 (#59): 5.2 The while Loop - Part 5 of 6
https://youtu.be/B0ZJhPWHtmU
---------------------------------
الواجب (تقييم ذاتي وليس إلزامي):
عمل برنامج يقوم بطلب رقمين من المستخدم ثم طباعة ناتج جمعهم. بعد ذلك، يقوم البرنامج بسؤال المستخدم عن رغبته بالاستمرار في جمع رقمين جديدين أم الخروج من البرنامج. مثل:
Enter the first number: 2
Enter the second number: 5
2 + 5 = 7
Do you want to sum other numbers (yes, no): yes
Enter the first number: 9
Enter the second number: 15
9 + 15 = 24
Do you want to sum other numbers (yes, no): no
Goodbye.