Fibonacci Series Program in C | C Language Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ธ.ค. 2024

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

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

    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.

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

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

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

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

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

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

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

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

  • @savagelover9689
    @savagelover9689 2 หลายเดือนก่อน

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

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

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

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

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

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

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

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

    • @shariquezaya4160
      @shariquezaya4160 11 วันที่ผ่านมา +1

      ​@@motive02😂😂

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

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

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

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

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

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

    Thank you Sir. You are the perfect teacher.

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

    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

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

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

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

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

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

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

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

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

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

    "i" is undeclared

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

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

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

    very easy to understand andclear.thank u for posting 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😀

  • @Romi65-m4s
    @Romi65-m4s ปีที่แล้ว

    How pleasant your voice is 😊 great teaching sir ji

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

      Watch apna college c programming

  • @nandakishorem9391
    @nandakishorem9391 5 ปีที่แล้ว +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=' ')

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

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

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

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

  • @RaniGanaparthi
    @RaniGanaparthi 3 หลายเดือนก่อน +2

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    i

  • @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 9 หลายเดือนก่อน

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

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

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

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

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

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

    crystal clear explanation ! to the point ! hats off !

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

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

  • @umakantapal9709
    @umakantapal9709 6 ปีที่แล้ว +7

    Why you are using i=1,i

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

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

  • @satyamsindiri8552
    @satyamsindiri8552 6 ปีที่แล้ว +14

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

    • @NareshIT
      @NareshIT  6 ปีที่แล้ว +21

      Satyam Sindiri,
      think about logic, initialization is very basic

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

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

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

    Thnk u sir

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

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

    Very nice explanation sir, thank you.

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

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

    you are the best Mr srinivas sir

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

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

    Sir you doesn't declare the variable i

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

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

    Thank you sir for this awesome short and easy logic❤

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

    You are best and great teacher❣️❣️

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

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

    Wonderful explanation sir, Thank you so much...

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

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

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

    Perfect explanation .Thanks sir🙏

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

    Sir it's can comes under recursive case????

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

    Sir why we want to take i sir ?
    Can you say me why plz

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

      to intiate the counting

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

      @@lokeshnegi5051 Hi This is Durga Mahadev See my channel it can help u
      th-cam.com/video/0-Ox66bNHHI/w-d-xo.html

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

    Awesome class, Thankyou sir🤗🤗

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

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

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

    your lectures are very beneficial sir thankyou so much sir

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

    Your expalnation is easy to understand

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

    Wowowowowowowowo 😍 love from Goa thanks sir for your work

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

    Ultimate fantastic mind blowing

  • @KuldeepSingh-qc7zl
    @KuldeepSingh-qc7zl 3 ปีที่แล้ว

    Thanks a million times sir😊☺

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

    Sir ... there is no declaration of i

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

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

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

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

    Your lectures are awesome sir!

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

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

    Explaining was understandable and awesome sir...

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

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

  • @InderjeetKaur-r8s
    @InderjeetKaur-r8s ปีที่แล้ว

    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

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

    best way to understand the fibonacci series code

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

    sir please start the series for mysql and nosql database

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

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

    Can we put ,b in the printf inside the loop ?

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

    Nice explanation sir!Keep Rocking....

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

    Thanks sir🤴🙏🏻❤❤

  • @umangraj6756
    @umangraj6756 4 ปีที่แล้ว +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 9 หลายเดือนก่อน

      It's declare bro not initialize

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

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

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

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

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

    MR. SIRINIVAS THANK YOU SO MUCH

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

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

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

    Thank you very much sir,I understood very well

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

    Good explanation sirr 👏

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

    clean explanation sir.... thank you

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

    Tq sir it is so helpful😌

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