ππ€π¬ π©π€ ππ₯π₯π§π€πππ π©π€ π¨π€π‘π«π π π₯π§π€ππ‘ππ’?
Ans: To solve a problem you need 6 steps:
1- Identify the Problem: what kind of a problem is this how we can solve this problem.
2- Understand the Problem: understand the problem and think how we can reach to solution.
3- Identify Alternative Ways: find out how many way available to solve the problem in better way
4- Select The best Way: select the best way to solve the problem
5- Step by Step Process: proceed towards to solve the problem step by step
6- Evaluation: Evaluate the solution whether it's giving correct solution.
What is algorithm??
Ans: algorithm is step by step process to solve a problem.
Example: Find the sum of 2 numbers a & b:-
var a = 4
var b = 6
Now to find the sum we can store the expression in c:
So c = a+b
Now to get output of the expression we can print
console.log(c)

0 Comments