# Tribonacci Series C Program

By | May 7, 2017

Learn how to print Tribonacci series in C programming language. The Tribonacci sequence is very similar to Fibonacci sequence.

#### What is a Tribonacci Sequence?

A Tribonacci sequence is a sequence of numbers in which the next number is found by adding the previous three consecutive numbers.

Note: The first three digits in a Tribonacci series is always 0, 1 and 2.

A Tribonacci sequence consists of first digit as 0, second digit as 1 and third digit as 2. The next digit (fourth element) is dependent upon the preceding three elements.

The fourth element is, therefore, the sum of previous three digits. This addition of previous three digits continues till the limit.

So, primarily Fibonacci series makes use of two preceding digits whereas tribonacci sequences makes use of preceding three digits

#### Example

0 1 2 3 6 11 20 37 68

#### Output

In case you get any compilation errors in the above code to print Tribonacci series in C programming using For loop and While loop or if you have any doubts about it, let us know about it in the comment section below.

## 2 thoughts on “Tribonacci Series C Program”

1. Amita Suri

CodeLite is an amazing IDE. Thank you so much for getting it here. It’s better than Codeblocks.

2. Mahesh Ganamala

Hey. This Tribonacci sequence seems to be so easy due to such a simple code. Thanks.