C++ program to Print Fibonacci Series | C++ programming tutorials for beginners

Поделиться
HTML-код
  • Опубликовано: 30 ноя 2024

Комментарии • 106

  • @SimpleSnippets
    @SimpleSnippets  5 лет назад +16

    Hey Guys, if you want many more such tech educational videos on this channel then please support me by subscribing to this channel & also share it with your friends ✌

  • @mrboxleytheonly
    @mrboxleytheonly 5 лет назад +19

    Super clear and straight to the point! Thank you

    • @SimpleSnippets
      @SimpleSnippets  5 лет назад

      Thank you so much buddy 😇 Glad you liked it.

  • @sumayyaarshad-gq1tl
    @sumayyaarshad-gq1tl Год назад +2

    Nice👍your method of teaching is really good

  • @jayeshyedge7171
    @jayeshyedge7171 4 года назад +3

    Actually if you give the num as 10 and if you multiply the seventh term by 11 you
    will get the sum of all the terms.

  • @faterosario7872
    @faterosario7872 4 года назад +9

    u just helped me with my homework ;)

  • @sakshijain3742
    @sakshijain3742 3 года назад +2

    Very nicely explained and simple program ❤. I was searching for this and I got it 👍

  • @shivacharan1015
    @shivacharan1015 6 лет назад +4

    I am really not being mean to you or anything but a suggestion from my side is that it would better if you ask the starting two numbers from the user because everytime a user might not want to start a Fibonacci series with 0 and 1 what if a person wants the series to be as follows 1,5, 6,11..., here the starting numbers are 1 and 5 so I think there should be a fix in your program and hope you find this comment useful and update your video. Thank you.

    • @SimpleSnippets
      @SimpleSnippets  6 лет назад +1

      Sure that's a legitimate suggestion 😇✌️ will try to work on it ✌️

  • @misstopper1
    @misstopper1 Год назад +1

    To the point explained 👍👍

  • @021ce_darshitagondaliya8
    @021ce_darshitagondaliya8 2 года назад +2

    Thank you so much for helping us to become a better version of ourselves

  • @muigamez678
    @muigamez678 2 года назад

    Bro that was so clear!!!!....thank you so much

  • @tarashahpoor5442
    @tarashahpoor5442 3 года назад

    thanks! you answered the question i had for almost 1 h!

  • @KastijitBabar
    @KastijitBabar Месяц назад

    Superb !! Thank You.

  • @sabahatfaria168
    @sabahatfaria168 6 лет назад +3

    Thnx for video!!👍👍✌
    I jst didn't get one thing at 2:20 y aren't v writing the condition of loop as "i

    • @SimpleSnippets
      @SimpleSnippets  6 лет назад +1

      Good question, Thats because we are starting from 0 na. If we started from 1 then we can go till i

    • @sabahatfaria168
      @sabahatfaria168 6 лет назад

      Oh ok i got it✌✌

    • @harisali1971
      @harisali1971 5 лет назад

      we can use this condition in for loop

  • @GunmanWorld
    @GunmanWorld 4 года назад +1

    Yeah it worked
    Thanks..😋✌️🤗

  • @itskhan-un1ge
    @itskhan-un1ge 6 лет назад +3

    It's awesome. I just subscribed

    • @SimpleSnippets
      @SimpleSnippets  6 лет назад

      Thank you so much Faisal, glad to hear that you liked the videos. Do share them with your friends and contacts 😇😋✌️

  • @rebaonemosiane4956
    @rebaonemosiane4956 6 лет назад +2

    thank you very much this was very helpful

    • @SimpleSnippets
      @SimpleSnippets  6 лет назад

      Thank you for such a positive response 😇. Glad you liked the video and found it helpful. Please do share this video with your friends and contacts 😇✌️

  • @ataladin87
    @ataladin87 2 года назад

    Always had a feeling that, it was the *_"i++"_* that was actually doing all the powering up.

  • @kkn5523
    @kkn5523 6 лет назад +8

    3:03 onwards: there second variable becomes the first var and the next var becomes the second var. Nice video though

    • @SimpleSnippets
      @SimpleSnippets  6 лет назад +5

      Didn't get you ?
      I think I phrased it correctly. The first variable get value of second variable right ? so thats why - first variable becomes second and the second variable get value of the next variable hence second variable becomes the next variable. ✌

    • @kkn5523
      @kkn5523 6 лет назад +2

      Simple Snippets oh you meant it gets the value. My bad. Have CS finals tomorrow so I'm a bit edgy right now smh

    • @SimpleSnippets
      @SimpleSnippets  6 лет назад +3

      Yes yes I meant that. 😊
      No problem buddy, hope you're liking the videos ✌️
      All the best for your exams 😇

    • @kkn5523
      @kkn5523 6 лет назад +2

      Simple Snippets yeah and I'm sharing them too 😋 Thx

    • @SimpleSnippets
      @SimpleSnippets  6 лет назад +3

      Wow, thank you so much for the positive response and support buddy. Glad to hear this 😇✌️

  • @aleleijhoymendoza4724
    @aleleijhoymendoza4724 3 года назад

    Thank you to sharing your knowledge

  • @musicpeace1459
    @musicpeace1459 6 лет назад +2

    Nice explained

    • @SimpleSnippets
      @SimpleSnippets  6 лет назад

      Thank you so much Pravin! I'm really glad to hear that you liked this video. Do give it a thumbs up and share it with your friends and pass on the knowledge 😇✌

  • @nab7431
    @nab7431 3 года назад +1

    Than you soooo much bro 🙏😮😀😎

  • @theraikwal
    @theraikwal 3 года назад +1

    Please be louder bro (that was only a problem) and all video was clear.
    U can reply me.

  • @visheshpurkait5066
    @visheshpurkait5066 2 года назад +2

    Mic aur door rakh lete, but btw you explained well

    • @SimpleSnippets
      @SimpleSnippets  2 года назад +2

      Haha sorry for that. kaafi purana video hai tabhi starting main ache equipments nahi the!

  • @ataladin87
    @ataladin87 2 года назад +1

    I'm confused by:
    First = Second;
    Didn't "second" become, 2??.

    • @romaisafarooq27
      @romaisafarooq27 2 года назад

      Yes im also thinking the same
      Ig there is a mistake

  • @CryptoVAirdrop
    @CryptoVAirdrop 4 года назад +2

    Thank u very much

    • @SimpleSnippets
      @SimpleSnippets  4 года назад

      Thanks buddy, glad to hear this. please do share the video with your friends too. Thats the biggest help and support 😇

  • @muhammadbahrozshamim2099
    @muhammadbahrozshamim2099 4 года назад +1

    This code is wrong...
    When u cout... First it gives the same output again and again becoz... The next value was stored in second... And theres nothing updated in first? So how ur compiler is adding i m just confused... 🙄

    • @nischalh.p3225
      @nischalh.p3225 2 года назад

      first = second
      second = next
      it is updating

  • @TechBalu
    @TechBalu 6 месяцев назад

    finaly i got it!

  • @phucthinh-w3w
    @phucthinh-w3w 8 месяцев назад

    bro is my hero

  • @newworldorder4348
    @newworldorder4348 5 лет назад +2

    You use comments nicely.

  • @parvezmulla3324
    @parvezmulla3324 8 лет назад +2

    nice explanation!

    • @SimpleSnippets
      @SimpleSnippets  8 лет назад

      Thank you Parvez. Do share it with your friends. :)

  • @OldTown_Workshop90
    @OldTown_Workshop90 4 года назад

    Very helpful video

  • @musicpeace1459
    @musicpeace1459 6 лет назад +3

    Subscribed 😀😁

    • @SimpleSnippets
      @SimpleSnippets  6 лет назад

      Woooow that's so nice to hear from you. There's a lot more tech educational content coming up on this channel so you'll definitely enjoy ✌️😇 welcome to Simple Snippets family ✌️😇

  • @user-sq5gx9lf5v
    @user-sq5gx9lf5v 4 года назад +2

    Thnx bro

  • @al-maalaalmaawali260
    @al-maalaalmaawali260 2 года назад

    nice explanation but you missed little thing
    what if the number is less than 2 😅

  • @jiren8991
    @jiren8991 6 лет назад +1

    you've not cout the next but still result is displayed ? I tried to did it with cout

  • @alihashemkhani3335
    @alihashemkhani3335 3 года назад

    Thank you man

  • @daniellaaraujo4646
    @daniellaaraujo4646 7 лет назад +2

    How would I save the results in order to be able to open it with something like notepad?

    • @SimpleSnippets
      @SimpleSnippets  7 лет назад +2

      You'll have to write the result in a txt file. you'll have to use File handling concept in C++ . I have covered a video on this topic as well in this very same series.

    • @muhammadibraheem2850
      @muhammadibraheem2850 4 года назад

      right click on the file and then chose open with and then select your ide(e.g dev c++)

  • @shahadtuglak1906
    @shahadtuglak1906 3 года назад

    Thanks Man❤

  • @rwjonathan873
    @rwjonathan873 3 года назад

    Thanks for vedio

  • @vidyawaghmare1225
    @vidyawaghmare1225 8 месяцев назад

    Best😊

  • @harzsla2800
    @harzsla2800 4 года назад

    your code won't be able to count fibonacci number greater than n>47

  • @muthuvisakanm
    @muthuvisakanm 7 лет назад +1

    cheer up...good work bro.thanks a lot jiii

    • @SimpleSnippets
      @SimpleSnippets  7 лет назад +1

      +Muthu Visakan hello, thank you so much for your positive response buddy. Do share the video with your friends and contacts 😊

  • @tulendrathakur2315
    @tulendrathakur2315 3 года назад

    Thank you bro

  • @pritambiswas1671
    @pritambiswas1671 2 года назад

    If i will gave -1 then what will be the out put

  • @dcepisodes9809
    @dcepisodes9809 2 года назад

    how it becomes negetive after certain number if i put num = 100

  • @leonardokwan
    @leonardokwan 4 года назад

    your program won't be able to write the 50-th and above Fibonacci numbers. How will you solve this problem?

    • @berniceyap3897
      @berniceyap3897 3 года назад

      hi did you find the solution for this? i am also having this problem

    • @daskohal1625
      @daskohal1625 3 года назад

      Try recursion

    • @dhruvarora8136
      @dhruvarora8136 2 года назад

      @@berniceyap3897 use long long int

  • @harisali1971
    @harisali1971 5 лет назад

    how can we change it if prompt user to enter number upto which he wants series and program generate series upto that number lets say upto 6765????

  • @harshjoshi4539
    @harshjoshi4539 4 года назад +1

    why cant we use while loop??

    • @SimpleSnippets
      @SimpleSnippets  4 года назад +1

      I think we can but how about you try to do it first ?

    • @harshjoshi4539
      @harshjoshi4539 4 года назад +1

      @@SimpleSnippets i did it worked I am currently doing your all c++ playlist currently i am on pointers and then i will do your ds and algo playlist

    • @SimpleSnippets
      @SimpleSnippets  4 года назад +1

      @@harshjoshi4539 that's amazing 🤟 and yes I'm sure you'll love DSA tutorials too 😁

    • @harshjoshi4539
      @harshjoshi4539 4 года назад +2

      Can u make playlist on printing diff patterns using C++

    • @SimpleSnippets
      @SimpleSnippets  4 года назад +1

      @@harshjoshi4539 I swear I'm not lying I was literally thinking about this short playlist about pattern printing last night! I might actually do it seriously.😁 But currently very much focused on DSA course and it takes too much of my time & effort so let's see 😊🤟

  • @vivekpatil7039
    @vivekpatil7039 6 лет назад +5

    Audio is very very very very low

    • @SimpleSnippets
      @SimpleSnippets  6 лет назад

      Sorry for the inconveniences. This was a very old video when I didn't really manage the audio levels well. In recently videos you will get very decent audio. Currently you can try using earphones 😇✌️

  • @indianairforce3315
    @indianairforce3315 6 месяцев назад

    You have not declare I in programm

  • @salmansanesdutt5095
    @salmansanesdutt5095 6 лет назад +1

    Nice

    • @SimpleSnippets
      @SimpleSnippets  6 лет назад +1

      You're welcome buddy. Do share the videos with your friends and contacts and keep sharing the knowledge ✌

  • @zainahmed4172
    @zainahmed4172 3 года назад +2

    do Fibonacci of 100, you will get wrong result

  • @rudradas2283
    @rudradas2283 3 года назад

    This process fully worng...does not work any common compiler...

  • @XploreIT_Expert
    @XploreIT_Expert 4 года назад +1

    bro plz speak loudly in vedio

  • @shubhambhosale8467
    @shubhambhosale8467 4 года назад +1

    if the number is 4 the the series should be 0 1 1 2 3 but you said 0 1 1 2😅😅

    • @SimpleSnippets
      @SimpleSnippets  4 года назад +1

      if number is 4 then it means I want first 4 numbers of the Fibonacci series which are - 0 1 1 2

    • @shubhambhosale8467
      @shubhambhosale8467 4 года назад

      @@SimpleSnippets tq😊

  • @rohitkushwaha4285
    @rohitkushwaha4285 7 лет назад +1

    this was amazing

    • @SimpleSnippets
      @SimpleSnippets  7 лет назад

      Thank you Rohit :) Do share the video with your friends :)

  • @harshitchauhan4967
    @harshitchauhan4967 6 лет назад

    How yours program is run 😕 you not print next in program?????

  • @amyelbayed9807
    @amyelbayed9807 4 года назад

    ربنا يحميك والله

  • @Tech-A-Holic
    @Tech-A-Holic 4 года назад

    Audio quality poor

  • @harshitchauhan4967
    @harshitchauhan4967 6 лет назад

    Bhi apne to next ko print hi nahi krvaya??

  • @Top5Category
    @Top5Category 7 лет назад

    .
    Your nature is like me !! :/