answersLogoWhite

0

to print the Fibonacci series until 100

you can take the input in d to make it run for whatever value you want

void main(){

int a,b,c,d;

a=0;

b=1;

c=1;

d=100;

while(c<d)

{

printf("%d\n",c);

c=a+b;

a=b;

b=c;

}

}

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

Fibonacci numbers 4 8 22 55 88?

No, they are not the normal Fibonacci numbers.


What is flow control statement used in C programming?

Flow control statements are those statements that cause execution to branch or jump to a new section of code, often upon evaluation of some conditional expression (a decision statement such as an if or switch statement). The break, continue, goto and return statements are all flow-control statements. Function calls are not considered to be flow control statements since functions can be inline expanded (by the compiler) and would therefore follow the normal flow of execution.


Control statements in java?

A programming language uses control statements to cause the flow of execution to advance and branch based on changes to the state of a program. control statements are mainly three types in java. they are selection, iteration, and jump.


What is normal exit in loops?

The condition requirements (target) of the conditional statement has been met.


What are the statements in java?

There are many kinds of statements that are used in Java and they are predominantly used for database connectivity using JDBCEx:PreparedStatement - for normal SQL QueriesCallableStatement - for stored procedures


When you start PowerPoint the program opens in normal?

No


How do you change an Excel cell color using an IF statement?

You would not use an If statement to do it in a normal formula that is directly in a cell. You would do it through Conditional Formatting. Go to Conditional Formatting and you can enter an if formula instead of a cell value for determining the condition, and then set the formatting you want.


What is earthing in computer?

Changing it to be normal unless it is a program...


When you start PowerPoint the program opens in normal view?

No


What is a normal setting that a computer program automatically selects?

The default.


What is the super normal program?

programme about a boy who thinks he is a hero


Statements is true about the language that Shakespeare used to write Romeo and Juliet?

It approximates the way people speak in normal conversation