Horje
tribonacci series c++ Code Example
tribonacci series c++
 int n;
    cin>>n;
    int a=0,b=0,c=1;
    if (n < 3) return 0;
    cout<<a<<" "<<b<<" "<<c<<" ";
    for(int i = 1; i<= n-3; i++){
        int d = a + b + c;
        cout<<d<<" ";
        a = b;
        b = c;
        c = d;
    }




Cpp

Related
arduino sprintf float Code Example arduino sprintf float Code Example
stl library c++ header Code Example stl library c++ header Code Example
pi in c++ Code Example pi in c++ Code Example
how to complie with c++ 17 Code Example how to complie with c++ 17 Code Example
C++ Type Casting Code Example C++ Type Casting Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
12