forked from GitHub/gf-core
Ints n
This commit is contained in:
12
examples/gfcc/compiler/abs.c
Normal file
12
examples/gfcc/compiler/abs.c
Normal file
@@ -0,0 +1,12 @@
|
||||
int abs (int x){
|
||||
if (x < 0){
|
||||
return 0 - x ;
|
||||
}
|
||||
else return x ;
|
||||
} ;
|
||||
int main () {
|
||||
int i ;
|
||||
i = abs (16);
|
||||
} ;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user