actually one of the three testcase is not passing
I have given you the code please help and find whether the code is problem or testcase was wrong
#include
#include
using namespace std;
int main()
{
int a = 0 , b = 1 , c = a+b , n;
cin>>n;
if(n>0){
cout<<a<<endl;
cout<<b<<" “<<c<<endl;
a = b;
b = c;
c = a + b;
for(int i = 2 ; i < n ; ++i){
for(int j = 0 ; j <= i ;++j){
cout<<c<<” ";
a = b;
b = c;
c = a + b;
}
cout<<endl;
}
}
return 0;
}