answersLogoWhite

0


Best Answer

void main()

{

int a=0,b=1,c;

clrscr();

printf("%d",a);

printf("%d",b);

for(;c<=20;)

{

c=a+b;

a=b;b=c;

printf("%d",c);

}

getch();

}

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

11y ago

#include <iostream>

using namespace std;

int main()

{

int x=0, y=0;

for( int z=1; z<100; z+=x )

{

cout << z;

cout << " ";

x=y;

y=z;

}

cout << endl;

return( 0 );

}

Output:

1 1 2 3 5 8 13 21 34 55 89

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a program in C plus plus that shows the following series 1 1 2 3 5 8 13 Using for Loop?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Write a C program to print the following series 112 122 . 1n2?

write a program to print the series 1/12+1/22+.........+1/n2 ?


Write a c program Fibonacci series using for loop in java?

Exactly what do you mean by 'C program in Java'


Write a sample program using ASPNET explaining all the syntax and semantics of the program?

write a sample program using asp.net explaining all the syntax and semantics of the program


How do you write Square program using vb?

write a vb program to find the magic square


How do you write a program for printing the following outputs 12345678910?

using namespace std; #include &lt;iostream&gt; int main() { cout &lt;&lt; "123456789012" &lt;&lt; endl; }


Write a c program to solve cos series?

Please do.


Write Client and server program in C language using UDP?

Write and run a client and a server program in C-language using UDP


Write a program to print following series 100 81 64 49 36 25 16 9 4 1 by using for loop .?

10 rem for next 20 for i=10 to 1 step -1 30 ? I^2; 40 next i 50 end


How do you write a c program to convert binary to decimal by using while statement?

write a c++ program to convert binary number to decimal number by using while statement


Write a program that read phrase and print the number of lower-case letter in it using function of counting?

write a program that reads a phrase and prints the number of lowercase latters in it using a function for counting? in C program


To write music using a series of signs and symbols?

Notate


Write a c program to generate Fibonacci series using copy constructor?

#include #include void main(void) { int i,j,k,n; clrscr(); i=0; j=1; printf("%d %d ",i,j); for(n=0;n&lt;=5;n++) { k=i+j; i=j; j=k; printf("%d ",k); } getch(); }