C Numbers 11: Display the first 10 lucas numbers [C Programming]

Опубликовано: 24 Февраль 2025
на канале: JLabs
1,699
31

Write a program in C to display the 10 lucas numbers.

Expected Output :
The first 10 Lucas numbers are :
2 1 3 4 7 11 18 29 47 76

===========================

What are Lucas Numbers?

Lucas numbers are similar to Fibonacci numbers. Lucas numbers are also defined as the sum of its two immediately previous terms. But here the first two terms are 2 and 1 whereas in Fibonacci numbers the first two terms are 0 and 1 respectively.

=================================================

   • C Programming - Numbers  

Website : http://www.jlabstech.com
Like us on Facebook :   / jlabstechnology  
Follow on Twitter :   / _jlabs_