C Programming Algorithum
Algorithum In C
what is algorithum
So, what is a programming algorithm? You can think of a programming algorithm as a recipe that describes
the exact steps needed for the computer to solve a problem or reach a goal. We've all seen food recipes - they
list the ingredients needed and a set of steps for how to make the described meal. Well, an algorithm is just like
that. In computer lingo, the word for a recipe is a procedure, and the ingredients are called inputs. Your
computer looks at your procedure, follows it to the letter, and you get to see the results, which are called
outputs. A programming algorithm describes how to do something, and your computer will do it exactly that
Algorithum StepStep 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
Flow Chart Digrame
<< PREVIEW >>
<< NEXT >>
Comments
Post a Comment