-
Notifications
You must be signed in to change notification settings - Fork 0
/
tradCPP.txt
55 lines (55 loc) · 968 Bytes
/
tradCPP.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#include <cstdlib>
using namespace std;
#include <iostream>
int main() {
int h;
int i;
int k;
int l;
int x;
int y;
cout<<"Entrez x :";
cin>>x;
cout<<"Entrez y et k:";
cin>>y>>k;
cout<<"Entrez y,k,h,i,l :";
cin>>y>>k>>h>>i>>l;
return 0;
}
cout<<"On doit trouver j = 2 et j ="<<j;
j = 1;
j = j-1;
cout<<"On doit trouver j = 0 et j ="<<j;
return 0;
}
i = j>k+2;
cout<<"On attend i = 0 on a : i = "<<i;
j = 3;
k = 4;
i = j>=k-1;
cout<<"On attend i = 1 on a : i = "<<i;
j = 1;
h = 2;
k = 19;
r = 5;
i = j<4-1&&k!=8+4*2-5||h>r*2&&r-5==0;
cout<<"On attend i = 1 on a : i = "<<i;
return 0;
}
out<<"testSi4 = "<<testSi4;
if (i==6) {
i = i-1;
}
else if (i==3) {
i = i+1;
}
else if (i==5) {
i = i+1;
}
else {
i = i+1;
}
testSi5 = i==6;
cout<<"testSi5 = "<<testSi5;
return 0;
}