algo__language c
algo__language c
1 [int] facultatif
2 <stdbool.h>
Operat
Operato
rators
Assignment =, +=, -=, *=, /=, %=
Arithme
Arithmetic
tic +, -, *, /, mod, div +, -, *, /, %
Logic
Logic NOT, AND, OR, !, &&, ||,
Relational
Relational <, <=, >, >=, =, ≠, = =, !=, <, <=, >, >=
Reading scan ([f],var1 , var2 , … , varn ) scanf (format, & var1, & var2,..., & varn )
Writing print ([f],exp1 , exp2 , … , expn ) printf (format, exp1 , exp2 , … , expn )
Alternatives if (condition) then if (condition)
Actions BEGIN {
bloc bloc ;
if if
ENDif }
[else [ else
BEGIN {
bloc ;
blocelse else
}
ENDelse
]
]
switch (expression) switch (expression)
BEGIN {
case c1 : begin bloc1 end case c1 : bloc1 ; [break;]
case c : begin bloc end case c : bloc ; [break;]
2 2 2 2
. .
case c : beginbloc end case c : bloc ; [break;]
n n n n
[default: begin bloc end] [default: bloc ;]
default default
END }
switch
Ite
Iteratives for cpt vi to vf [step pas] do for(cpt=vi ;cpt<=vf ;cpt=cpt+pas)
Actions begin {
bloc bloc ;
endfor }