Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
objective c fibonanci
//gcc 4.8.4 #import <Foundation/Foundation.h> int main(void) { int first = 0 ; int second = 1; int next; int c; for ( c = 0 ; c < 10 ; c++ ) { if ( c <= 1 ) next = c; else { next = first + second; first = second; second = next; } NSLog(@"%d\n",next); } }
run
|
edit
|
history
|
help
0
01 Hola mundo
compound intresst in objective c
Goldbach Conjecture
03 Muestra enteros y flotante
Uso de else if
Class implementation using get method
NSSet Program in objectice-c
Etudiant.m
NSString Examples in one
NSNumber