C++ Program To Print Fibonacci Series without using recursion
In this video you will get to know how the program works and also I have explained it briefly with output.
-------------------------------------------------------------------------------------------------------
Working of the Program - In this program I have used the concept of C++ language in this I have used the iostream library of C++, then in int main I have initialized n1 = 0, n2 = 2, n3, i, number, then the program will ask for the input of numbers which address to the number variable which we have initialized in the starting. Then I have used the for loop in which the condition is i = 1, i less than number and pre-incremented the i. The statements in the for loop are we finded the value of n3 by the addition of n1 and n2, then we have declared n1 = n2 and n2 = n3 and then the program ends with the return 0 statement.
-------------------------------------------------------------------------------------------------------------
#coding_57 #programming #coding #youtuber
--------------------------------------------------------------------------------------------------------------
Here you will get the code - https://techcode23.blogspot.com/2021/...
-------------------------------------------------------------------------------------------------------------
Don't forget to like the video and subscribe the channel
-------------------------------------------------------------------------------------------------------------
fibonacci series, cpp programs, c programs, recursion
-------------------------------------------------------------------------------------------------------------
Thanks for watching..............