# Tribonacci Series C Program

## C Program To Print Tribonacci Series

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 Series 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 three preceding 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 sequence 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.

#### Tushar Soni

I am Tushar Soni, Co - Founder of CodingAlpha. I am a computer science student from India and passionate about Web Development and Programming. Connect with me on Facebook | LinkedIn | Google Plus

### 2 thoughts on “Tribonacci Series C Program”

• May 7, 2017 at 1:06 pm