Extra Question
Algorithm program and Flowchart - Std - VIII
---------------------------------------------------------------------------------
Write algorithm program and draw a Flowchart in computer notebook.
*Algorithm Program*
Example 1: Subtraction of two numbers.
Step 1: Start
Step2: Take two values a,b
Step 3: Subtract a-b
Step4: Store the value in e
Steps: print c Step 6: End
Example 2: Adding of three numbers.
Step 1: Start
Step2: Take three values a,b,C
Step 3: Add a+b+c
Step4: Store the value in D Step5: print D
Step 6: End
Example 3: Find the greatest number between two numbers.
Step 1: Start
Step2: Take two values a,b
Step 3: a>b
Step4: a is the greatest number
Step5: print a
Step 6: Else
Step7: b is greatest number
Step8: Print b step9:end
Examples 4: Find the greatest number among three numbers.
Step 1: Start
Step 2: Take three values ab and c
Step 3: ac, a b
Step4: a is the greatest number
Step5: Print a
Flowchart
1. Subtract two numbers.
|
2) Add 2 Number 3. Flowchart to Print Area of Square
|
No comments:
Post a Comment