Program Fibonanci Menggunakan Dev C++

Program Fibonanci Menggunakan Dev C++ :


#include <stdio.h>
int main()
{
    int i, n, t1 = 0, t2 = 1, nextTerm;

    printf("Enter the number of terms: ");
    scanf("%d", &n);

    printf("Fibonacci Series: ");

    for (i = 1; i <= n; ++i)
    {
        printf("%d, ", t1);
        nextTerm = t1 + t2;
        t1 = t2;
        t2 = nextTerm;
    }
    return 0;
}



Komentar

  1. Casino & Games | DrmCD
    Looking 시흥 출장샵 for a 거제 출장안마 new favorite to play 제천 출장안마 casino games? Dr.MCD's casino floor is filled with new games for you! Enjoy 정읍 출장샵 over 2000 slot machines, video 구미 출장샵 poker, and the latest table games

    BalasHapus

Posting Komentar

Postingan populer dari blog ini

Program Pembelian Tiket Bioskop Menggunakan Program Dev C++

Program Menentukan Nilai Lulus Atau Tidak Lulus Mahasiswa Menggunakan Dev C++

Program Pembelian Tiket Pesawat Menggunakan Dev C++