Algorithms are the basic things you need to know if you want to be a java programmer or any other language programmer. Algorithm is basically the step by step procedure to solve any problem.
Here's a peak of it:
Write an algorithm to print sum of two numbers-
Step 1 -> Start
Step 2 -> Take a, b variable
Step 3 -> Input a, b
Step 4 -> Print a+b
Step 5 -> Stop
Write an algorithm to calculate the area of a circle-
Step 1 -> Start
Step 2 -> Take r variable
Step 3 -> Input r
Step 4 -> Print 22/7 * r * r
Step 5 -> Stop
Thank you and make sure to like and comment.
0 comments:
Post a Comment