79798071

Date: 2025-10-23 18:13:20
Score: 1
Natty:
Report link
#include <bits/stdc++.h>
using namespace std;

long double fib[1000000];
int n;

int main()
{
    cout<<"ile liczb fibbonacciego mam wyznaczyć:";
    cin>>n;
    fib[0]=1;
    fib[1]=1;
            for(int i=2; i<n; i++)
            {
                    fib[i]=fib[i-1]+fib[i-2];
            }
            for(int i=0; i<n; i++)
            {
                    cout<<"\n"<<"wyraz nr "<<i+1<<":"<<fib[i];
            }
            return 0;
    
}
Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: sebastian