شكرا لك مع انه فيه اشياء ما اخذناه بالكود المكتوب
طيب سؤال ايضا لدي بعض الاسئله امال اجابتكم
اولا
كود:
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: }
ليش هنا المخرجات ولا شئ ؟؟مو المفروض يخرج صفر >>2-2 ؟؟؟
ثانيا
3. Write a for statement to count from 100 to 200 by 2s.
ما المقصود ب 2s ؟؟؟؟؟و count؟؟؟
2. Write a nested for loop that prints a 10x10 pattern of 0s.
هل يقصد ان اطبع له مربع صفوفه 10 واعمدته 10 وكلها اصفار ؟؟؟
ثالثا
7. Do the following values evaluate to TRUE or FALSE?
a. 0
b. 1
c. -1
d. x = 0
e. x == 0 // assume that x has the value of 0
لم افهم على اي اساس اضح صح او خطا ؟؟
واسفه اذا تعبتكم انتظر مساعدتكم