This commit is contained in:
Kagura 2024-10-30 13:16:08 +08:00
parent 9c75f37409
commit 30f3c67e32
2 changed files with 12 additions and 0 deletions

View file

@ -1,10 +1,18 @@
int main(){ int main(){
int a = 0,b=1; int a = 0,b=1;
int k = add(a,b); int k = add(a,b);
int j = munis(a,k);
print(k) print(k)
} }
int add(int a, int b){ int add(int a, int b){
int c = a+b; int c = a+b;
return c; return c;
}
short munis(int a,int b){
int l = a;
int f = b;
int k = l - f;
return k;
} }

View file

@ -60,6 +60,10 @@ class SourceFile {
.toString() .toString()
.replace(";;",";") .replace(";;",";")
.replace(";",";\n") .replace(";",";\n")
.replace("{","{\n")
.replace("}","}\n")
.replace(" =","=")
.replace("= ","=")
} }
} }