Fibonacci Series Program in C | C Language Tutorial

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

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

  • @NareshIT
    @NareshIT  5 лет назад +51

    Please Comment, Subscribe and Click Bell🔔🔔🔔 Icon for More Updates. To learn software course from our experts please register here for online training: goo.gl/HIB0wL

    • @revathivakkalagadda8281
      @revathivakkalagadda8281 5 лет назад +1

      How much cost to learn python

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

      Sir aap Jo program likh rhe ho isme sir vo run nhi ho rha hai aapne isme i variable declare nhi kiya hua hai krna pdega Kya?

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

      sum += sum + i will work? (when sum = 0)

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

      write a program to print fibonacci series given to seeds value by the user using do while construct

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

      Best ever programming teacher in the world....✨✨💥💥 thankyou very much.....🙏

  • @satyawanj
    @satyawanj 6 лет назад +220

    Mr. Shrinivas, you are an awesome teacher, you don't know how beneficial your lectures were for my during my exams, thank you so much for all your efforts. Hats off to you. 🙏

  • @nithin4333
    @nithin4333 4 года назад +62

    People here in the comments
    Posting sir u forgot to declare i
    That is very basic thing
    Wat u have to focus is how to solve it by logical thinking that is the key

  • @ChessMind248
    @ChessMind248 2 года назад +19

    Shrinivas sir, you are really awesome! The way you teach, it increases the curiosity to run the code in my system. You are really a great teacher! lots of love and respect 🙏

  • @adityapatel3157
    @adityapatel3157 Год назад +9

    I was just getting so confused solving it myself and he explained it so easily, great sir.

  • @thehalfknowledge
    @thehalfknowledge 4 года назад +4

    the program is fine but just need to change in initial value of b ==> b=1 and at the bottom instead of c=b; ==> b=c; remaining all steps are fine
    complete code :
    #include
    main(){
    int n,i,a=0,b=1,c;
    printf("enter n value");
    scanf("%d",&n);
    for(i=1;i

  • @saswatpradhan648
    @saswatpradhan648 5 лет назад +99

    simplest fibonacci series program ,but "i" should be initialised.

    • @hianshul07
      @hianshul07 5 лет назад +7

      It is initialised bro, look at 1st part of for loop 'i=1'.

    • @Akhil_3302
      @Akhil_3302 5 лет назад +9

      Saswat Pradhan is correct because iam getting error bro

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

      Declaring a variable isn't the same as initialising it.
      Here i is initialised with "i = 1" but is not declared.
      To declare it you need "int i".
      You can also do both at the same time with "int i = 1"

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

      @@hianshul07 yes!!!

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

      he also did not written header file, it do not mean he has written wrong, only understand the logic, and that is
      great.

  • @burhanuddinlokhandwala1313
    @burhanuddinlokhandwala1313 5 лет назад +11

    Superb teaching for beginners in c, thank you so much sir 🙏

  • @truptimore5502
    @truptimore5502 4 года назад +11

    Hello sir, I am really very thankful of Naresh IT institute☺️ for providing top class faculties🙏.Also I am very thankful of Shrinivas Sir😇 I have learned C programming at this platform.I got a wonderful learning experience with deep concepts analysis.It makes my time productive during this lockdown period and boostup my knowledge.Well I am from a very small village of Maharashtra sending lots of love and best wishes for such a great initiative.
    Once again Thankyou 😇 Thankyou so very Much..........🙏and I am gonna switch another courses that you are providing

  • @Mrsrikanthnaik
    @Mrsrikanthnaik 7 лет назад +17

    Sir plz post video on multiplication addition and substraction of matrix programm

  • @thanuhya4414
    @thanuhya4414 3 года назад +5

    Sir , seriously you are the fantastic teacher
    I saw so many videos for c programming in RUclips, but I couldn't understood what they are saying.
    Really You are an awesome teacher sir
    Thank you so much sir 🙏🏻🙏🏻🥰

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

      PRINT
      with new tricks 2022.... 👇🏻
      ruclips.net/video/K5RtZN36lYI/видео.html

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

    Simple way to each any logic. Excellent. Hats-off Srinivas

  • @kasak3574
    @kasak3574 5 лет назад +12

    Srinivas u cleared our concept so easily.. Thnx

  • @nagavenkataprasannakumarko286
    @nagavenkataprasannakumarko286 3 года назад +8

    Sir, actually we wrote printf for only 'a', but O/P of Fibonacci is 'b'

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

    Im from Sri Lanka and I could learn something new from here. Thank you so much ❤

  • @karunasagarks5224
    @karunasagarks5224 6 лет назад +11

    Super explaination sir ,please make some videos on make file concept (in which client, server and header files are included)as soon as possible at least in one week

  • @MD00792
    @MD00792 Год назад +4

    This was a SOLID A! class. you are a great teacher Mr. Thank You.

  • @nandakishorem9391
    @nandakishorem9391 4 года назад +4

    python is much easier:
    f=1
    s=1
    print('fibonacci series')
    print(f,s,end=' ')
    t=int(input('enter limit upto which pattern should be generated:'))
    for t in range(1,t+1):
    t=f+s
    f=s
    s=t
    print(t,end=' ')

  • @Trejern
    @Trejern 5 лет назад +8

    Thank you Sir. You are the perfect teacher.

  • @kittubittu603
    @kittubittu603 5 лет назад +13

    Sir in the above problem you didn't declared 'i' variable and whan coming to logic of program there is no 'i' variable in the logic

    • @motive02
      @motive02 11 месяцев назад +1

      Just know the logic don't act like a compiler fo

    • @Entertainmenttv376
      @Entertainmenttv376 10 месяцев назад +1

      Sir declared i with data type of int you can see in prog

  • @SureshKumar-tp3dy
    @SureshKumar-tp3dy 5 лет назад +6

    wow so impressive what a way to iterating a program, mind blowing.......

  • @shalinilatha3083
    @shalinilatha3083 3 года назад +3

    Sir thank u ao much... The way u r teaching is very easy to understand🙏

  • @AmitPal-cy4tf
    @AmitPal-cy4tf 3 года назад +4

    Hello Naresh Sir
    I have 2 questions in the Fibonacci program
    1. We have used printf for printing a value then what about b and c how they are printed?
    2. If i itself is initialized as i=1 then i++ will become 2 correct.
    I am very new to programming and in learning phase please advice me

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

    Simple English and its very clear explanation... Tq sir 🤝

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

      PRINT
      with new tricks 2022.... 👇🏻
      ruclips.net/video/K5RtZN36lYI/видео.html

  • @ramanamuddada2548
    @ramanamuddada2548 4 года назад +7

    Sir please post the flow chart for this Fibonacci series logic....☺️🙏

  • @EE-SANTHIYAB
    @EE-SANTHIYAB 6 лет назад +1

    very easy to understand andclear.thank u for posting sir

  • @subasrivenkat6211
    @subasrivenkat6211 3 года назад +7

    We can learn even toughest subjects if we have a good teacher😊😊

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

      Yes.

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

      PRINT
      with new tricks 2022.... 👇🏻
      ruclips.net/video/K5RtZN36lYI/видео.html

  • @bharath8328
    @bharath8328 Год назад

    Tq u so.much❤️for ur simple explanation to understand very easily

  • @Romi65-m4s
    @Romi65-m4s Год назад

    How pleasant your voice is 😊 great teaching sir ji

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

    Tq so much sir u helped me a lot aslau nenu deenikosam thala baddakottukunna but intha easy anukole

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

    superb sir, very good explanation 👍👍, best wishes 🙂

  • @meghanachittoju7647
    @meghanachittoju7647 5 лет назад +1

    Your explanation is easy to understand
    sir .tq sir i not declared sir

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

    Ask me whats best bout this video....his accent and to the point view...man proud to have individuals like you😀

  • @Beextracrazy_
    @Beextracrazy_ Год назад

    #include
    int main()
    {
    int n,n1=0,n2=1,i,c=5;
    printf("%d\t%d\t",n1,n2);
    for(i=2;i

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

      It is
      n1=n2
      n2=n
      and what if you input c=1😇

  • @dattakashiwale
    @dattakashiwale 9 месяцев назад

    crystal clear explanation ! to the point ! hats off !

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

    thank you so much sir.
    your vedios are very helpful. keeo going.....

  • @vineelareddy7069
    @vineelareddy7069 6 лет назад +20

    I guess in your program you have missed "i" trem in the int statement

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

    Sir you are too good
    Your simple manner makes it look so easy

  • @oco-prod
    @oco-prod 5 лет назад +4

    Holy shit. I used Fibonacci series on elementary school to cheat on multiplication and didn't even know it.

  • @mohammedabdulrasheed2996
    @mohammedabdulrasheed2996 5 лет назад +1

    Sir your teaching method is v good I m a big fan of you

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

    Best teacher.Thank you so much sir💖💖💖😊😊😊

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

    your explanation is very very very very...... good ......

    • @NaveenKumar-tn4xs
      @NaveenKumar-tn4xs 5 лет назад

      technical interview questions: ruclips.net/p/PL8EZmTsQbFTmUDV8DBW5BXeKm0wQPdt9-

  • @abhiwryt552
    @abhiwryt552 9 месяцев назад

    Thank you sir for this awesome short and easy logic❤

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

    This is my prefered channel to understand c concepts thanks don't change the approach sir 👍👍👍👍

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

    hank u so much... The way u r teaching is very easy to understand

  • @srinivasaraoyp3640
    @srinivasaraoyp3640 5 лет назад +1

    Very nice explanation sir, thank you.

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

    Thank you sir your perfect teacher 🙏🙏🙏🙏🙏🙏

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

    some people are born to do specific things in life like Sachin for cricket, Messi for football and you as a teacher...

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

    You are best and great teacher❣️❣️

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

    your lectures are very beneficial sir thankyou so much sir

  • @RaniGanaparthi
    @RaniGanaparthi 2 месяца назад +2

    Sir why we print 'a' value
    What is the use of that
    Can i directly print the 'c 'value

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

    Thanq sir....for making this type of videos....which are very understandable 👍☺️

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

    Sir can you explain this question ones.
    Write a code to print next to last words of a sentance.

  • @02govindjadhav.47
    @02govindjadhav.47 3 года назад

    Nice video. Understood the concept. But, you forgot to declare the integer I which you used in the for loop.

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

    Perfect explanation .Thanks sir🙏

  • @surendrarayudu7272
    @surendrarayudu7272 Год назад

    i

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

    This is wrong.The print will be 1,1,1,1.Here is the fixed code:
    #include
    int main ()
    {
    int limit,a=0,b=1,c=0,i;
    printf("Enter Limit:
    ");
    scanf("%d",&limit);
    i=0;
    while (i

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

    Awesome class, Thankyou sir🤗🤗

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

    Your lectures are awesome sir!

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

    Wonderful explanation sir, Thank you so much...

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

    you are the best Mr srinivas sir

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

    Sir after completing explanation onces show the full program so that we can revise

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

      PRINT
      with new tricks 2022.... 👇🏻
      ruclips.net/video/K5RtZN36lYI/видео.html

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

    Thanku sir 🙏this program are easy to understand and I expect same more program display I need to 🙏🙏

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

      PRINT
      with new tricks 2022.... 👇🏻
      ruclips.net/video/K5RtZN36lYI/видео.html

  • @KuldeepSingh-qc7zl
    @KuldeepSingh-qc7zl 3 года назад

    Thanks a million times sir😊☺

  • @sanjaygupta5636
    @sanjaygupta5636 5 лет назад +4

    I'm not getting expected result.
    Expected series: 0,1,1,2,3,5....
    Actual series: 0,1,2,3,5....
    using above mentioned program.

  • @umakantapal9709
    @umakantapal9709 6 лет назад +7

    Why you are using i=1,i

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

    Thanks bro, u keep it simple and direct to the point.

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

    Your expalnation is easy to understand

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

    Sir you print only the value of a so how will be the b value are executed ??

  • @pasumarthisuresh4459
    @pasumarthisuresh4459 Год назад

    Tq sir it is so helpful😌

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

    Explaining was understandable and awesome sir...

  • @charancherry6263
    @charancherry6263 7 лет назад +13

    sir, first u declare the variable only 'a'
    how 'b' will execute
    rply me sir

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

      first a=0,b=1
      then the sum of them is c =1;
      Then the value of b which is 1 is stored in a then c's value is stored in b
      so there is no need for b's execution because of the assignment operator its value changes constantly.

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

    Good explanation sirr 👏

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

    Thanks sir🤴🙏🏻❤❤

  • @himaleela589
    @himaleela589 5 лет назад +1

    Ultimate fantastic mind blowing

  • @basavarajyambtnal7562
    @basavarajyambtnal7562 7 месяцев назад

    Thank you sir☺️☺️☺️☺️☺️😊😊

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

    Thank you very much sir,I understood very well

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

    clean explanation sir.... thank you

  • @satyamsindiri8552
    @satyamsindiri8552 6 лет назад +14

    Sir urr not initialalize "i"
    Then hw urr using loop by the hlp of i

    • @NareshIT
      @NareshIT  6 лет назад +20

      Satyam Sindiri,
      think about logic, initialization is very basic

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

    #include
    int main()
    {
    int n,a=0,b=1,c;
    printf("Enter the Number: ");
    scanf("%d",&n);

    for(int i=1;i

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

    Sir you doesn't declare the variable i

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

    You are great sir 👍👍👍👍

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

    Thank you so much sir .I learned the logic

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

    Nice Explanation Sir 👍

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

    Super and excellent teaching

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

    Thank you sir, nice explanation!
    but this code fails for higher values e.g. 656 in case of long long int in c++. how to solve this..?

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

    Thank you so much sir.... helped me very much

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

    Thnx to explaining perfectly....

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

    Nice explanation sir!Keep Rocking....

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

    "i" is undeclared

  • @rohangupta.1
    @rohangupta.1 3 года назад

    PLEASE answer below question
    write a c program that create data structure that are larger than the amount of physical memory contained in their machine

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

    Thank u sir .....ur explanation is really good.....

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

    Wowowowowowowowo 😍 love from Goa thanks sir for your work

  • @gunjibhanuprakash2507
    @gunjibhanuprakash2507 5 лет назад +1

    Nice teaching

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

    MR. SIRINIVAS THANK YOU SO MUCH

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

    Thank you so much sir

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

    Sir...what is the initial value of i?0/1
    Or it's just counting the iterations from 1 to 7

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

    Thanks for easy explanation

  • @ashishkale6362
    @ashishkale6362 5 лет назад +1

    There is No Deceleration of i variable ? How come you use it without declaring? It's seems that program is incorrect...

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

    Your teaching super