Ajout eval final avec mips
This commit is contained in:
12
eval-fourni/input/eval3.l
Normal file
12
eval-fourni/input/eval3.l
Normal file
@@ -0,0 +1,12 @@
|
||||
entier $i, entier $j, entier $k, entier $somme;
|
||||
main() {
|
||||
$somme = 0;
|
||||
pour $i = 0; $i < 10; $i = $i + 1; faire {
|
||||
pour $j = 0; $j < $i; $j = $j + 1; faire {
|
||||
pour $k = 0; $k < $j; $k = $k + 1; faire {
|
||||
$somme = $somme + $i + $j + $k;
|
||||
}
|
||||
}
|
||||
}
|
||||
ecrire ( $somme );
|
||||
}
|
||||
Reference in New Issue
Block a user