#include <stdio.h>
#include <stdlib.h>
int main()
{
int a=0,b=1,c=1,d=0,e=0,x,n;
printf("enter the limit: ");
scanf("%d",&n);
while(d<=n)
{
d=a+b+c;
a=b;
b=c;
c=d;
e=a+b+c;
for(x=d+1;x<d;x++)
{
if(x<=n)
{
printf("the non tribonacci series is: ");
printf("\n %d",x);
}
}
}
return 0;
}
actually how to do this it doesnot print the values