السلام عليكم
عنندي بعض النننقاط اتمنى تسساعدوني فيها اولا
3. Write a for statement to count from 100 to 200 by 2s.
ما المقصود بهذه العبارة by 2s.؟؟؟؟؟؟؟
ثانيا
int counter = 100;
while (counter < 10)
{
cout << "counter now: " << counter;
counter--;
}ما الخطا بهذا الجزء من الكود ؟؟؟
وايضا هنا ما الخطا ؟؟
9. BUG BUSTERS: What is wrong with this code?
cout << "Enter a number between 0 and 5: ";
cin >> theNumber;
switch (theNumber)
{
case 0:
doZero();
case 1:
doOneToFive();
break;
default:
doDefault();
break;
}في هذا مثال3 المفروض سي = 4 صحيح؟؟؟
وفي مثال 2 المفروض بي وسي = 2 صحيح ؟؟
وهنا ما الخطا ؟؟
10 Examine this program and anticipate the output:
1: #include <iostream.h>
2: int main()
3: {
4: int a = 2, b = 2, c;
5: if (c = (a-b))
6: cout << "The value of c is: " << c;
7: return 0;
8: }وشكرا لكم
