-3

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

2
Contributors
3
Replies
8
Views
5 Years
Discussion Span
Last Post by Narue
0

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++.

0

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

3

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.

Votes + Comments
amen to that
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.