need someone to please explain for me the program below for fibonacci.. urgent.. my friend need it for him to land a job.. need a hand for this one please


#include<iostream.h>
#include<conio.h>

void main()
<
clrscr<>
int a=0, b=1, c;
cout << a << endl;
cout << b << endl;

for <int i=1; i<= 10; i++>
<
c=a+b;
cout << c <<endl;
a=b;
b=c;
>
getch<>;
>


please do explain it briefly.. thanks..

Recommended Answers

All 3 Replies

my friend need it for him to land a job..

If your "friend" can't answer the question without help, he shouldn't get the job. Also note that confusing both parentheses and braces for angle brackets is a sure way to not get hired for any job that requires even the most rudimentary knowledge of C++.

the job offered do not focus mainly about c++.. thanks anyway :))

the job offered do not focus mainly about c++

It doesn't have to focus mainly on C++. If getting the job depends on answering a question, you don't deserve to get the job if you can't answer the question. This is simple common sense.

commented: amen to that +10
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.