You are on page 1of 5

‫الكود‬ ‫المتغيرات‬ ‫المخرجات‬

#include<iostream> Int Flo 23.2


using namespace std; X at 1033.4
3 y
int main() { 6 4.8
5.8
int x = 9 * 3 / 7; 6.8
float y = x * 4 / 2.5;

cout << ++y + y++ * x << endl;


cout << (x / 5 || y / 5);
cout << (x / 5 && y / 5);
x = y;
cout << x / 2 << y / 2;

}
‫الكود‬ ‫المتغيرات‬ ‫المخرجات‬
#include<iostream> Int Int Int 13819
using namespace std; x x Y
18 7 75
int main() { 19 63

int x = 9 * 2 + 3 / 7;

{
int x = 15 / 2 * 9, y = x + 12;
cout << x + y;
}

cout << ++x;


}
Y ‫األخيره غلط‬
‫الكود‬ ‫المتغيرات‬ ‫المخرجات‬
#include<iostream> Int 0369121518
using namespace std; x
0
int main() { 1
2
for (int i = 0; i < 9 + 10; i++) 3
{ 4
cout << i++; 5
i += 9 / 10 + 1; 6
} 7
} 8
9
10
11
12
13
14
15
16
17
18
19
‫الكود‬ ‫المتغيرات‬ ‫المخرجات‬
#include<iostream> Int 1591317
using namespace std; i
1
int main() { 2
int i = 0; 4
while ( i < 9 + 10) 5
{ 6
i += 9 / 10 + 1; 8
cout << i++; 9
i += 2; 10
} 12
} 13
14
16
17
18
20
‫الكود‬ ‫المتغيرات‬ ‫المخرجات‬
#include<iostream> Int 13
using namespace std; i 79
0 13
int main() { 1
2
for (int i = 0; i < 15; i++) 3
{ 4
if (i % 2 == 0) 5
cout << ++i; 6
else 7
cout << i++ << endl; 8
9
i += 9 / 10 + 1; 10
} 11
} 12
13
14
15

You might also like