int main(int argc, const char * argv[]) {
int i,n=9,f=0,s=1,next;
for (i=0; i<=n; i++) {
if (n<=1) {
next=i;
}
else
{
next=f+s;
f=s;
s=next;
}
NSLog(@"%i",next);
}
return 0;
}
Sign up here with your email
ConversionConversion EmoticonEmoticon