an algorithm. For example
, if you want to find the factorial of a number, then the set of statements
that solves the problem becomes a
program
. You first express the solution to the problem in terms of
an
algorithm
and then
develop a program that implements that algorithm
. A program may be written
in any programming language of your choice, such as C/C++, JAVA2, Visual Basic 9, and so on.
An algorithm is a formal step-by-step method for solving problems. Let us now look at some of the
characteristics of algorithms:
1. An algorithm consists of an
Do'stlaringiz bilan baham: