इसमे instruction को set by step में लिखा जाता है Algorithm नियमो का एक समूह हैं जिसके द्वारा किसी भी problem को एक निश्चित step में solved किया जा सकता हैं
Algorithm लिखने के लिए कुछ standard
(1) :- algorithm हमेशा step में लिखी जाती हैं
Ex:- step 1
Step 2
Step 3
” ” ” ”
Step N
(2) first step हमेसा “start” ओर last step “stop” होता है
(3):- algorithm के अंदर arithmetic ( +,×,÷,- ) तथा logical (&,!,” “) operates का use किया जाता हैं
Example:- दो संख्याओ में से बड़ी संख्या छाँटने या ढूढने हेतु algorithm.
Step 1: start
Step 2: read a,b
Step 3: if a>b
Step 4: print a
Step 5: else print b
Step 6: stop
Note { हर else का if होना जरूरी है परंतु हर if का else हो ये जरूरी नही है }
इसे भी देखे