5
Contributors
5
Replies
7
Views
6 Years
Discussion Span
Last Post by seanbp
0

By writing a program that creates that output.

Did you bother to read the Member Rules as requested?

-4

Try this It will work..... :)

#include<stdio.h>
#include<iostream.h>
#include<conio.h>
void main()
{
	clrscr();
	int i,a=0,b=1,c;
	cout<<a<<"\n"<<b;
	for(i=1;i<10;i++)
	{
		c=a+b;
		a=b;
		b=c;
		cout<<"\n"<<c;
	}
	getch();
}
Votes + Comments
Hope you get a good grade for HIS homework
0

Don't give away code!

You might feel inclined to help someone else. That's great! But don't solve the problem for them. Our goal is to help people to learn, and giving away answers doesn't achieve that goal. Naturally giving away the answer is a subjective thing, so just make sure that the person you help can't just take your code and turn it in for a grade. We want the people we help to do enough work to learn something meaningful.
Taken from: http://www.daniweb.com/forums/thread78223.html

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.