mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 03:32:51 -06:00
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