Fibonacci Code
Fibonacci Code
An algorithm is a set of instructions that can help you solve a problem quickly. Algorithms
are easy to understand and can be used to solve problems in a specific order, making them
very helpful for computers.
In simple, an algorithm could be a set of commands that must be taken after for a computer to
perform calculations or other problem-solving operations.
According to its formal definition, a calculation could be a limited set of instructions carried
out in a particular arrange to perform a specific assignment.
It isn't the whole program or code; it is basic logic to an issue spoken to as a casual
representation within the frame of a flowchart or pseudocode.
To obtain set of
Input rules from expected Output
output from the give
input.
Algorithm
Input: After designing the algorithm, the necessary and desired inputs are given to the
algorithm.
Processing unit: Inputs are passed to a processing unit that produces the desired output.
Output: The results or results of the program are called outputs.
Finiteness: The algorithm has a finite number of steps and must terminate after a finite
amount of time.
Definiteness: Each step should be clear, well defined and precise. There should be no
ambiguity.
Effectiveness: Each step should be simple and take a limited amount of time.
1.3 The algorithms to display the Fibonacci series and the factorial value for a give
number using Pseudo code.