Fibonacci Series Program in C | C Language Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ส.ค. 2024
  • Fibonacci Series Program in C
    C Language Tutorial Videos
    ** For Online Training Registration: goo.gl/r6kJbB ? Call: +91-8179191999
    ? Visit Our Website for Classroom Training:
    nareshit.in/c-...
    ? For Online Training:
    nareshit.com/c...
    --------------------------
    ? About NareshIT:
    "Naresh IT is having 20+ years of experience in software training industry and the best Software Training Institute for online training, classroom training, weekend training, corporate training of Hadoop, Salesforce, AWS, DevOps, Spark, Data Science, Python, Tableau, RPA ,Java, C#.NET, ASP.NET, Oracle, Testing Tools, Silver light, Linq, SQL Server, Selenium, Android, iPhone, C Language, C++, PHP and Digital Marketing in USA,Hyderabad, Chennai and Vijayawada,Bangalore India which provides online training across all the locations
    --------------------------
    ? Our Online Training Features:
    1.Training with Real-Time Experts
    2.Industry Specific Scenario’s
    3.Flexible Timings
    4.Soft Copy of Material
    5. Share Videos of each and every session.
    --------------------------
    Please write back to us at us.training@nareshit.com/online@nareshit.com or Call us at USA:
    +1404-232-9879 or India: +918179191999
    * Check The Below Links*
    ? For Course Reg: goo.gl/r6kJbB
    ? Subscribe to Our Channel: goo.gl/q9ozyG
    ? Circle us on G+: plus.google.co...
    ? Like us on Facebook: / nareshit
    ? Follow us on Twitter: / nareshitech
    ? Follow us on Linkedin:
    / naresh-i-technologies
    ? Follow us on Instagram: / nareshitech

ความคิดเห็น • 466

  • @NareshIT
    @NareshIT  5 ปีที่แล้ว +49

    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 2 ปีที่แล้ว

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

    • @lovesinha7524
      @lovesinha7524 2 ปีที่แล้ว

      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 ปีที่แล้ว +217

    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 ปีที่แล้ว +60

    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 ปีที่แล้ว +98

    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 4 ปีที่แล้ว +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 3 ปีที่แล้ว +3

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

  • @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

  • @kittubittu603
    @kittubittu603 4 ปีที่แล้ว +11

    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 8 หลายเดือนก่อน +1

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

    • @Entertainmenttv376
      @Entertainmenttv376 7 หลายเดือนก่อน +1

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

  • @thanuhya4414
    @thanuhya4414 3 ปีที่แล้ว +5

    Sir , seriously you are the fantastic teacher
    I saw so many videos for c programming in TH-cam, 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.... 👇🏻
      th-cam.com/video/K5RtZN36lYI/w-d-xo.html

  • @Mrsrikanthnaik
    @Mrsrikanthnaik 6 ปีที่แล้ว +17

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

  • @nagavenkataprasannakumarko286
    @nagavenkataprasannakumarko286 3 ปีที่แล้ว +8

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

  • @burhanuddinlokhandwala1313
    @burhanuddinlokhandwala1313 4 ปีที่แล้ว +10

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

  • @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

  • @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=' ')

  • @kasak3574
    @kasak3574 5 ปีที่แล้ว +12

    Srinivas u cleared our concept so easily.. Thnx

  • @ravishankardp9142
    @ravishankardp9142 2 ปีที่แล้ว +2

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

  • @ramanamuddada2548
    @ramanamuddada2548 4 ปีที่แล้ว +7

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

  • @vineelareddy7069
    @vineelareddy7069 5 ปีที่แล้ว +20

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

  • @manishdhar3232
    @manishdhar3232 ปีที่แล้ว +4

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

  • @subasrivenkat6211
    @subasrivenkat6211 2 ปีที่แล้ว +7

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

    • @pranayshinde8510
      @pranayshinde8510 2 ปีที่แล้ว +1

      Yes.

    • @BEraB2
      @BEraB2 2 ปีที่แล้ว

      PRINT
      with new tricks 2022.... 👇🏻
      th-cam.com/video/K5RtZN36lYI/w-d-xo.html

  • @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

    • @MrNilolive
      @MrNilolive 2 ปีที่แล้ว

      mera le

    • @romanlesnar
      @romanlesnar 10 หลายเดือนก่อน

      Watch apna college c programming

  • @SmartProgramming
    @SmartProgramming 6 ปีที่แล้ว +2

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

  • @vikashdwivedi2015
    @vikashdwivedi2015 3 ปีที่แล้ว +1

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

  • @SureshKumar-tp3dy
    @SureshKumar-tp3dy 5 ปีที่แล้ว +6

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

  • @trejern
    @trejern 5 ปีที่แล้ว +8

    Thank you Sir. You are the perfect teacher.

  • @surajtaru2499
    @surajtaru2499 5 ปีที่แล้ว +6

    Sir you doesn't declare the variable i

  • @thelogahn
    @thelogahn 4 ปีที่แล้ว +4

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

  • @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

  • @FlankOcean
    @FlankOcean 4 ปีที่แล้ว

    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

  • @Beextracrazy_
    @Beextracrazy_ 9 หลายเดือนก่อน

    #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 5 หลายเดือนก่อน

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

  • @Nitesh.2280
    @Nitesh.2280 9 หลายเดือนก่อน

    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

  • @alokdas2857
    @alokdas2857 4 ปีที่แล้ว +2

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

  • @satyadurga7823
    @satyadurga7823 5 ปีที่แล้ว +3

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

    • @NaveenKumar-tn4xs
      @NaveenKumar-tn4xs 5 ปีที่แล้ว

      technical interview questions: th-cam.com/play/PL8EZmTsQbFTmUDV8DBW5BXeKm0wQPdt9-.html

  • @rahuljoshi3932
    @rahuljoshi3932 5 ปีที่แล้ว

    Ask me whats best bout this video....his accent and to the point view...man proud to have individuals like 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

  • @mohammedabdulrasheed2996
    @mohammedabdulrasheed2996 4 ปีที่แล้ว +1

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

  • @surendrarayudu7272
    @surendrarayudu7272 9 หลายเดือนก่อน

    i

  • @EE-SANTHIYAB
    @EE-SANTHIYAB 5 ปีที่แล้ว +1

    very easy to understand andclear.thank u for posting 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.... 👇🏻
      th-cam.com/video/K5RtZN36lYI/w-d-xo.html

  • @charancherry6263
    @charancherry6263 6 ปีที่แล้ว +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.

  • @anjushrestha1
    @anjushrestha1 2 ปีที่แล้ว +1

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

  • @meghanachittoju7647
    @meghanachittoju7647 5 ปีที่แล้ว +1

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

  • @rajkumarmaddi8318
    @rajkumarmaddi8318 2 ปีที่แล้ว

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

    • @BEraB2
      @BEraB2 2 ปีที่แล้ว

      PRINT
      with new tricks 2022.... 👇🏻
      th-cam.com/video/K5RtZN36lYI/w-d-xo.html

  • @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...

  • @vaibhavwani2094
    @vaibhavwani2094 2 ปีที่แล้ว +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..?

  • @memer219
    @memer219 3 ปีที่แล้ว

    Sir , there's a mistake..
    we should print a and b before loop.. and then should print c inside the loop

  • @02govindjadhav.47
    @02govindjadhav.47 2 ปีที่แล้ว

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

  • @karunasagarks5224
    @karunasagarks5224 6 ปีที่แล้ว +3

    Sir here why you declared intially I=1 why not I=0

  • @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...

  • @abhiwryt552
    @abhiwryt552 6 หลายเดือนก่อน

    Thank you sir for this awesome short and easy logic❤

  • @muaviakhan6393
    @muaviakhan6393 ปีที่แล้ว

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

  • @dattakashiwale
    @dattakashiwale 6 หลายเดือนก่อน

    crystal clear explanation ! to the point ! hats off !

  • @santhiyak9009
    @santhiyak9009 5 ปีที่แล้ว +2

    Sir ... there is no declaration of i

  • @himaleela589
    @himaleela589 4 ปีที่แล้ว +1

    Ultimate fantastic mind blowing

  • @edwinokebe8175
    @edwinokebe8175 6 ปีที่แล้ว

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

  • @bharath8328
    @bharath8328 ปีที่แล้ว

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

  • @AMeghamala
    @AMeghamala 2 ปีที่แล้ว +1

    Your lectures are awesome sir!

  • @preethimahalingam4734
    @preethimahalingam4734 5 ปีที่แล้ว +1

    you did not declare b in program how output is generated without given b sir

  • @omkandmule1379
    @omkandmule1379 2 ปีที่แล้ว +1

    Sir, Int i; is missing in a programme.
    You can not explain what is i .

  • @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

  • @umangraj6756
    @umangraj6756 3 ปีที่แล้ว +1

    I was so much depressed that why this programme was not working.
    But finally I found that i was missing (u must initialise i).

    • @edwardkenway6341
      @edwardkenway6341 5 หลายเดือนก่อน

      It's declare bro not initialize

  • @srinivasaraoyp3640
    @srinivasaraoyp3640 5 ปีที่แล้ว +1

    Very nice explanation sir, thank you.

  • @uakrays6453
    @uakrays6453 3 ปีที่แล้ว

    you are the best Mr srinivas sir

  • @mahedirony
    @mahedirony 2 ปีที่แล้ว

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

  • @sugambista-bq5ku
    @sugambista-bq5ku ปีที่แล้ว

    Excellent teaching

  • @gunjibhanuprakash2507
    @gunjibhanuprakash2507 4 ปีที่แล้ว +1

    Nice teaching

  • @rockstaraliya6518
    @rockstaraliya6518 2 ปีที่แล้ว

    Super and excellent teaching

  • @smartysantosh3125
    @smartysantosh3125 4 ปีที่แล้ว +2

    Hey guys this program is wrong you know the utput will be 1 according to his printf theory

    • @FlankOcean
      @FlankOcean 4 ปีที่แล้ว

      same question

  • @prathamvardaan4187
    @prathamvardaan4187 ปีที่แล้ว

    your lectures are very beneficial sir thankyou so much sir

  • @existingstars3665
    @existingstars3665 3 ปีที่แล้ว +2

    Find the 15th term of the series?
    0,0,7,6,14,12,21,18, 28
    Explanation : In this series the odd term is increment of 7 {0, 7, 14, 21, 28, 35 - - - - - - }
    And even term is a increment of 6 {0, 6, 12, 18, 24, 30 - - - - - - }
    Explain this question sir this question is asked in tcs exam

    • @MrunmeshGharde
      @MrunmeshGharde 2 ปีที่แล้ว

      #include
      int main()
      {
      int n, a = 7, b, c, i;
      printf("Enter Limit");
      scanf("%d", &n);
      for(i=0; i

  • @kalyanikalyani7277
    @kalyanikalyani7277 2 ปีที่แล้ว

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

  • @bandaru777
    @bandaru777 3 ปีที่แล้ว

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

  • @akhil5586
    @akhil5586 5 ปีที่แล้ว

    Sir doubt
    If we use stelen f(x) will it give the value by counting string terminator \0 or it ll not give

  • @kalapalanagaanjanadevi2418
    @kalapalanagaanjanadevi2418 5 ปีที่แล้ว

    Your expalnation is easy to understand

  • @rohithayeleti5997
    @rohithayeleti5997 2 ปีที่แล้ว

    Good explanation sirr 👏

  • @user-nt3nk8wi2l
    @user-nt3nk8wi2l 8 หลายเดือนก่อน

    Hlo sir i want to know that in this program you did not define int i in starting but you use i Integer in for loop is this program run without declaring i int

  • @bharat3827
    @bharat3827 2 ปีที่แล้ว

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

  • @pasumarthisuresh4459
    @pasumarthisuresh4459 ปีที่แล้ว

    Tq sir it is so helpful😌

  • @jefftseng863
    @jefftseng863 5 ปีที่แล้ว

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

  • @preethimahalingam4734
    @preethimahalingam4734 5 ปีที่แล้ว

    why taking i=0 because he want to start value input as 0 so i=o ,if u start given value as 1 1 2 3 5 8 13 its go on now i=1 is taking because u start with 1

  • @gnani3361
    @gnani3361 5 ปีที่แล้ว +3

    Sir .,what about remaining program and what about that declaration of i in the local variable declaration....if no need of declaration u can say it na..😓 and what about getch( );
    Plz clear my doubts sir...i was mad..😥😓😭

    • @PrinceKumar-tl2ut
      @PrinceKumar-tl2ut 5 ปีที่แล้ว +1

      He forgot to declare i variable and getch function was used earlier in turbo c++ etc , but nowadays it's not used in new programming softwares like dev c++.

  • @racheshpatil803
    @racheshpatil803 2 ปีที่แล้ว

    Wonderful explanation sir, Thank you so much...

  • @roshangupta4146
    @roshangupta4146 2 ปีที่แล้ว

    You are best and great teacher❣️❣️

  • @vsashidhar1838
    @vsashidhar1838 4 ปีที่แล้ว +5

    Sir, "i" is not declared in the above program.

  • @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.... 👇🏻
      th-cam.com/video/K5RtZN36lYI/w-d-xo.html

  • @gullusid3275
    @gullusid3275 5 ปีที่แล้ว +2

    sr muje c language ka exam dena hai pllz sr starting se pda ye jisse c language starting point se smj aye plzz sr

  • @gaganm2746
    @gaganm2746 3 ปีที่แล้ว

    Between Int and n put i. You will clear the error

  • @nayanshrawane359
    @nayanshrawane359 ปีที่แล้ว +1

    sir please start the series for mysql and nosql database

  • @samsharief7382
    @samsharief7382 2 ปีที่แล้ว

    sir you have not declared i in int but you have uded i in for loop
    the program is coming wrong for me,
    any explaination about this program ?

  • @arnabroy5852
    @arnabroy5852 5 ปีที่แล้ว +1

    Sir plz don't teach wrong code.... I respect you but your entire code is wrong.....

  • @nanicreations5445
    @nanicreations5445 3 ปีที่แล้ว

    Your teaching super

  • @SanketGalande
    @SanketGalande 4 ปีที่แล้ว

    Very easy to understand

  • @basavarajyambtnal7562
    @basavarajyambtnal7562 4 หลายเดือนก่อน

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

  • @vibhavsharma2724
    @vibhavsharma2724 4 ปีที่แล้ว

    Perfect explanation .Thanks sir🙏

  • @nongrum7156
    @nongrum7156 5 ปีที่แล้ว +1

    Thank u sir

  • @ankitkumarojha7510
    @ankitkumarojha7510 2 ปีที่แล้ว +1

    Thnk u sir

  • @pragynameghanavanaparthi99
    @pragynameghanavanaparthi99 5 ปีที่แล้ว

    Sir need a program to get the output as 1 3 7 15......plz look at it once sir