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
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
How much cost to learn python
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?
sum += sum + i will work? (when sum = 0)
write a program to print fibonacci series given to seeds value by the user using do while construct
Best ever programming teacher in the world....✨✨💥💥 thankyou very much.....🙏
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. 🙏
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
😊
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 🙏
I was just getting so confused solving it myself and he explained it so easily, great sir.
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
simplest fibonacci series program ,but "i" should be initialised.
It is initialised bro, look at 1st part of for loop 'i=1'.
Saswat Pradhan is correct because iam getting error bro
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"
@@hianshul07 yes!!!
he also did not written header file, it do not mean he has written wrong, only understand the logic, and that is
great.
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
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
Just know the logic don't act like a compiler fo
Sir declared i with data type of int you can see in prog
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 🙏🏻🙏🏻🥰
PRINT
with new tricks 2022.... 👇🏻
th-cam.com/video/K5RtZN36lYI/w-d-xo.html
Sir plz post video on multiplication addition and substraction of matrix programm
Sir, actually we wrote printf for only 'a', but O/P of Fibonacci is 'b'
Superb teaching for beginners in c, thank you so much sir 🙏
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
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=' ')
But "C" is the basic.😂😂
Srinivas u cleared our concept so easily.. Thnx
Simple way to each any logic. Excellent. Hats-off Srinivas
Sir please post the flow chart for this Fibonacci series logic....☺️🙏
I guess in your program you have missed "i" trem in the int statement
This was a SOLID A! class. you are a great teacher Mr. Thank You.
We can learn even toughest subjects if we have a good teacher😊😊
Yes.
PRINT
with new tricks 2022.... 👇🏻
th-cam.com/video/K5RtZN36lYI/w-d-xo.html
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
mera le
Watch apna college c programming
superb sir, very good explanation 👍👍, best wishes 🙂
Sir you print only the value of a so how will be the b value are executed ??
wow so impressive what a way to iterating a program, mind blowing.......
Thank you Sir. You are the perfect teacher.
Sir you doesn't declare the variable i
Holy shit. I used Fibonacci series on elementary school to cheat on multiplication and didn't even know it.
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.
Print value of b
Print value of c then you will get
Why you are using i=1,i
We use it in for loop
For ( condition, initialisation, increment/decrement)
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
#include
int main()
{
int n,n1=0,n2=1,i,c=5;
printf("%d\t%d\t",n1,n2);
for(i=2;i
It is
n1=n2
n2=n
and what if you input c=1😇
How pleasant your voice is 😊 great teaching sir ji
Tq so much sir u helped me a lot aslau nenu deenikosam thala baddakottukunna but intha easy anukole
Sir can you explain this question ones.
Write a code to print next to last words of a sentance.
your explanation is very very very very...... good ......
technical interview questions: th-cam.com/play/PL8EZmTsQbFTmUDV8DBW5BXeKm0wQPdt9-.html
Ask me whats best bout this video....his accent and to the point view...man proud to have individuals like you😀
Sir urr not initialalize "i"
Then hw urr using loop by the hlp of i
Satyam Sindiri,
think about logic, initialization is very basic
Sir your teaching method is v good I m a big fan of you
i
very easy to understand andclear.thank u for posting sir
Sir after completing explanation onces show the full program so that we can revise
PRINT
with new tricks 2022.... 👇🏻
th-cam.com/video/K5RtZN36lYI/w-d-xo.html
sir, first u declare the variable only 'a'
how 'b' will execute
rply me sir
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.
thank you so much sir.
your vedios are very helpful. keeo going.....
Your explanation is easy to understand
sir .tq sir i not declared sir
Simple English and its very clear explanation... Tq sir 🤝
PRINT
with new tricks 2022.... 👇🏻
th-cam.com/video/K5RtZN36lYI/w-d-xo.html
There is No Deceleration of i variable ? How come you use it without declaring? It's seems that program is incorrect...
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..?
Sir , there's a mistake..
we should print a and b before loop.. and then should print c inside the loop
Nice video. Understood the concept. But, you forgot to declare the integer I which you used in the for loop.
Sir here why you declared intially I=1 why not I=0
some people are born to do specific things in life like Sachin for cricket, Messi for football and you as a teacher...
Thank you sir for this awesome short and easy logic❤
Sir you are too good
Your simple manner makes it look so easy
crystal clear explanation ! to the point ! hats off !
Sir ... there is no declaration of i
Ultimate fantastic mind blowing
This is my prefered channel to understand c concepts thanks don't change the approach sir 👍👍👍👍
Tq u so.much❤️for ur simple explanation to understand very easily
Your lectures are awesome sir!
you did not declare b in program how output is generated without given b sir
Sir, Int i; is missing in a programme.
You can not explain what is i .
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
I was so much depressed that why this programme was not working.
But finally I found that i was missing (u must initialise i).
It's declare bro not initialize
Very nice explanation sir, thank you.
you are the best Mr srinivas sir
hank u so much... The way u r teaching is very easy to understand
Excellent teaching
Nice teaching
Super and excellent teaching
Hey guys this program is wrong you know the utput will be 1 according to his printf theory
same question
your lectures are very beneficial sir thankyou so much sir
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
#include
int main()
{
int n, a = 7, b, c, i;
printf("Enter Limit");
scanf("%d", &n);
for(i=0; i
Sir...what is the initial value of i?0/1
Or it's just counting the iterations from 1 to 7
Thanq sir....for making this type of videos....which are very understandable 👍☺️
Sir doubt
If we use stelen f(x) will it give the value by counting string terminator \0 or it ll not give
Your expalnation is easy to understand
Good explanation sirr 👏
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
Best teacher.Thank you so much sir💖💖💖😊😊😊
Tq sir it is so helpful😌
Thanks bro, u keep it simple and direct to the point.
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
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..😥😓😭
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++.
Wonderful explanation sir, Thank you so much...
You are best and great teacher❣️❣️
Sir, "i" is not declared in the above program.
Thanku sir 🙏this program are easy to understand and I expect same more program display I need to 🙏🙏
PRINT
with new tricks 2022.... 👇🏻
th-cam.com/video/K5RtZN36lYI/w-d-xo.html
sr muje c language ka exam dena hai pllz sr starting se pda ye jisse c language starting point se smj aye plzz sr
Between Int and n put i. You will clear the error
sir please start the series for mysql and nosql database
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 ?
Sir plz don't teach wrong code.... I respect you but your entire code is wrong.....
Your teaching super
Very easy to understand
Thank you sir☺️☺️☺️☺️☺️😊😊
Perfect explanation .Thanks sir🙏
Thank u sir
Thnk u sir
Sir need a program to get the output as 1 3 7 15......plz look at it once sir