+ 2
Which questions you have seen in almost every technical written tests conducted in IT Software company?
2 Respuestas
+ 2
In programming, algorithm is a set of well defined instructions in sequence to solve the problem.
Example :
Write an algorithm to add two numbers entered by user.
Step 1: Start
Step 2: Declare variables num1, num2 and sum.
Step 3: Read values num1 and num2.
Step 4: Add num1 and num2 and assign the result to sum. sum←num1+num2
Step 5: Display sum
Step 6: Stop
If you want more examples refer below link
https://www.programiz.com/article/algorithm-programming
0
What is an algorithm? Give an example.