Posted by : Unknown Friday, December 15, 2017

#include <stdio.h>
#include <stdio.h>
int main()
{
int i,n,t1 = 0, t2 = 1, nextTerm;
printf(“Enter the Number of terms: “);
scanf(“%d”, &n);
printf (“Fibbonanci series: “);
for (i = 1; i <= n; ++i)
{
printf(“%d”, t1);
nextTerm = t1 + t2; t1 = t2;
t2 = nextTerm;
}
return 0;


Leave a Reply

sudah baca jangan lupa comment and like

Subscribe to Posts | Subscribe to Comments

program factorial bilangan dengan dev c++

#include <iostream> using namespace std; int main() { int b,c; cout<<“program oleh suparto”<<endl; cout<<“masukk...

- Copyright © mari kita berkembang😊 - Blogger Templates - Powered by Blogger - Designed by Johanes Djogan -