# What is the algorithm in Computer ?

What
are algorithms?

We can say that algorithms are used to solve any problem in step by step manner. In real world we can do so many task in step – step by manner for getting the best result. For example buying a shirt in market.

OR
Algorithms Informally, an algorithm is any well-defined computational procedure that takes some value, or set of values, as input and produces some value, or set of values, as output. An algorithm is thus a sequence of computational steps that transform the input into the output.

Contents

## Keyboard Shortcut for Window 7

Steps to Calculate the Simple Interest

We can also view an algorithm as a tool for solving
a well-specified computational problem. The statement of the problem specifies
in general terms the desired input/output relationship. The algorithm describes
a specific computational procedure for achieving that input/output relationship.

## Type of Computer

Example:

An algorithm to add any two Numbers

Step : 1 Start

Step : 2 Take two numbers

Step : 3 Add the two numbers

Step : 4 Print the result

Step : 5 Stop

This is an algorithm to add two numbers.