#include
#include
main()
{
int x=1,y=2,p,i,a;
cout<<"Masukkan batas deret fibonacci : ";
cin>>a;
cout<cout<for(i=1;i<=a-2;i++)
{
p=x+y;
cout<
#include
main()
{
int x=1,y=2,p,i,a;
cout<<"Masukkan batas deret fibonacci : ";
cin>>a;
cout<
{
p=x+y;
cout<
x=y;
y=p;
}
getch();
return 0;
}
Tidak ada komentar:
Posting Komentar