954,498 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Explain Fibonacci

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
#include

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

for
<
c=a+b;
cout << c <
getch<>;
>


please do explain it briefly.. thanks..

aeiou2001
Newbie Poster
2 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
 
my friend need it for him to land a job..


If your "friend" can't answer the question without help, heshouldn'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++.

Narue
Bad Cop
Administrator
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
 

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

aeiou2001
Newbie Poster
2 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
 
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.

Narue
Bad Cop
Administrator
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You