• 4 Haziran 2023 20:39

Sait ORHAN

Öğretmek için Öğrenin- Öğrenmek için Öğretin

Fibonacci Sayıları

BySait ORHAN

Eyl 10, 2011
#include <stdio.h>
#include <stdlib.h>

int main(void)
{
long int min=0, max =1, sayi;
int i=0;
for(i; i<45 ; i++){
sayi = min+max;
min = max;
max =sayi;
printf(“%5i\t%15li\n”,i,sayi);
}

system(“PAUSE”);
return 0;
}

Bir cevap yazın

E-posta hesabınız yayımlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir

This site uses Akismet to reduce spam. Learn how your comment data is processed.