//I need some help to generate tribonnaci sequence starting from 1,1,1,3,5,9
the user can input the sequence max, below is my code in c++
//The problem is the first 3 output won't be 1,1,1
#include <iostream>
using namespace std;
int main(){
int input, a=0, b=0, Total=1, c=1;
cout << "Please input a top number: ";
cin >> input;