compiler works on abs and fibonacci

This commit is contained in:
aarne
2004-09-25 08:24:11 +00:00
parent b93056f878
commit 7e0b0d2b68
8 changed files with 99 additions and 32 deletions

View File

@@ -1,12 +1,20 @@
int abs (int x){
int y ;
{
if (x < 0){
return 0 - x ;
y = 0 - x ;
}
else return x ;
else {
y = x ;
}
}
return y ;
} ;
int main () {
int i ;
i = abs (16);
printf (int,i) ;
return ;
} ;