What is Algorithm
0 minute read
What is Algorithm?
A sequential solution of a program that written in human language,called algorithm. After the analysis of the problem, programmer start to write the algorithm of that problem.
Example
Algorithm of the program to find out number is odd or even?
step 1 : start
step 2 : input number
step 3 : rem=number mod 2
step 4 : if rem=0 then
print "number is even"
else
print "number is odd"
endif
step 5 : stop
What is Logic?
A set of principles underlying the arrangements of elements in a computer so as to perform a specified task.