This commit is contained in:
2023-11-29 16:08:44 +01:00
parent 446eb575de
commit 4041397b09
56 changed files with 1463 additions and 17 deletions

Binary file not shown.

View File

@@ -9,12 +9,12 @@ public class Q1Main{
int i;
try{
for (i=0; i<args.length; i++){
if (args[i].equals("*") || args[i].equals("/") || args[i].equals("+") || args[i].equals("-")){
if (args[i].equals("x") || args[i].equals("/") || args[i].equals("+") || args[i].equals("-")){
int a;
int b;
a = liste.pop();
b = liste.pop();
if(args[i].equals("*")){
if(args[i].equals("x")){
liste.push(b*a);
}
if(args[i].equals("/")){