what is algorithm in programming
From programming point of view,
♦ An algorithm is a step by step procedure (technique) for solving any problem.
♦ An algorithm is an effective method expressed as a finite set of well defined instructions.
♦ Refers to the logic of a program and step by step description of how to arrive at the solution of a given problem.
For example, find the sum of two numbers:
Step 1: Start
Step 2: Input A
Step 3: Input B
Step 4: Calculate C = A + B
Step 5: Output C
Step 6: Stop
Another example, Consider the following instructions that you need to boiling water:
Step 1: Start
Step 2: Take water in a kettle.
Step 3: Place the kettle on the oven.
Step 4: Turn the oven on.
Step 5: Check whether water is boiled
Step 6: Turn the oven off
Step 7: Stop
0 মন্তব্য(গুলি):
একটি মন্তব্য পোস্ট করুন
Comment below if you have any questions