I have an exam of programming fundamentals tomorrow, I have taken many of your tutorials and they have helped me a lot you are a life saver☺
@MegaByte-y4z22 күн бұрын
are u from pakistan
@tahawaseem698914 күн бұрын
Yes
@zish36552 ай бұрын
love u bro this was great, I was getting confused by having to deal with 3 variables.
@SallyNashwanDwaymeh3 ай бұрын
for (int i=0 ; i
@abdulhamidfayziyev92932 жыл бұрын
I did not understand why did you initialize i to the 3?
@PortfolioCourses2 жыл бұрын
Because the number of terms must be at least 3, otherwise we exit the program entirely. We output the first two terms 'manually' instead of using the loop because these two terms are "automatically" set.
@sohatufail361010 ай бұрын
Sir why you assigned 0 to nextterm
@avnishkalyankar524710 ай бұрын
Because you need to initialise the variable nextTerm with some value. You can do that by initializing it with a 0.
@abdulhamidfayziyev92932 жыл бұрын
Why not 0 or 1?
@PortfolioCourses2 жыл бұрын
See my reply above.
@Mohan-mh1ew Жыл бұрын
Thank you so much i understood keep upload problems
@PortfolioCourses Жыл бұрын
You’re welcome, and I’m going to try to keep going! :-)
@hashimhamza7335 Жыл бұрын
Thank you so much
@PortfolioCourses Жыл бұрын
You’re very welcome! :-)
@webster_theking2412 жыл бұрын
Please I want 100
@PortfolioCourses2 жыл бұрын
The code is available here: github.com/portfoliocourses/cplusplus-example-code/blob/main/fibonacci.cpp. If you run it, and enter in 100, it should give you the first 100 terms. :-)
@muntahihossainsamin1344 күн бұрын
@@PortfolioCourses I am getting negative integers for this case.