What is an Algorithm?

An Algorithm is any well defined computational procedure that takes some values or set of values as input and produces some values or set of values as output.

An algorithm is the a sequence of computational steps that transforms the input into output.

We can also view an algorithm as tool for solving well specified computational problem. The statement of the problem specifies in general terms the desire i/o relationship.

An Algorithm is any well defined computational procedure that takes some values or set of values as input and produces some values or set of values as output.

An algorithm is the a sequence of computational steps that transforms the input into output.

We can also view an algorithm as tool for solving well specified computational problem. The statement of the problem specifies in general terms the desire i/o relationship.

Step 1: Start Step 2: Declare variables a,b and c. Step 3: Read variables a,b and c. Step 4: If a>b If a>c Display a is the largest number. Else Display c is the largest number. Else If b>c Display b is the largest number. Else Display c is the greatest number. Step 5: Stop

## No comments:

## Post a Comment