-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlangage.txt
More file actions
66 lines (49 loc) · 929 Bytes
/
langage.txt
File metadata and controls
66 lines (49 loc) · 929 Bytes
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
56
57
58
59
60
61
62
63
64
65
66
import ISIL.io;
import ISIL.lang;
Programme L3_ISIL_A
PDec
// Declaration des variables
final Integer T[3]=[1,0,3];
Float V[10];
Integer X1;
Float X2;
Integer X3;
final Integer U=10;
final Float P;
Integer I;
Integer J;
InDebut
P <-- 1.2;
Input (" %d ", X1);
Input (" %f ", X2);
Input (" %d ", X3);
Write("test : %d test : %f test : %d",X1,X2,X3);
//AFFECTATION
X3 <-- 16;
X2 <-- 10 + 17 * 15 / (12 + P * 2);
X1 <-- 12 + (-2) + 6 * 100 - X3;
//DIV PAR ZERO :
//------indirect------
X3 <-- 3 / T[1]; //AVEC T[1]=0
I <-- 0;
X1 <-- 13 /I; //AVEC I=0
//------direct-------
X1 <-- 4/0 + 15 * 3 ;
//---------Boucle imbrique ---------
For(I<-- 0;I<10;I++)
DO
X3 <-- 16;
X2 <-- 10 + 17 * 15 / (12 + P * 2);
X1 <-- 12 + (-2) + 6 * 100 - X3;
For(J <-- 1 ;J<10 ;J++)
DO
X2 <-- 10 + 17 * 15 / (12 + P * 2);
ENDFOR
IF(I<J || X1== X2 && X3 != 100)
DO
Write("HELLO WORLD !!");
ELSE
Write("HELLO ");
ENDIF
ENDFOR
InFin