Flowchart Examples PDF
Document Details
Uploaded by Deleted User
Tags
Summary
This document provides examples of flowcharts for different mathematical tasks, such as calculating area, solving equations, determining odd/even numbers, and finding maximum values.
Full Transcript
1. To find the area of square Start Read a Area = a*a Print Area Stop 2. To solve the expression a = b*c+d Start Read b,c,d A = b*...
1. To find the area of square Start Read a Area = a*a Print Area Stop 2. To solve the expression a = b*c+d Start Read b,c,d A = b*c+d Print A Stop 3. To multiply two numbers Start Read b,c A = b*c Print A Stop Conditions using Flowchart 1. To find Odd or even (+,-,*,/,%) Start / → division % → remainder Read a = → assignment == → equality Is False a%2==0? True Print a “is even” Print a “is odd” Stop 2. To find positive or negative Start Read a False Is a>0? True Print a “is negative” Print a “is positive” Stop 3. To find greatest of 2 numbers Start Read a,b False Is a>b? True Print b “is greatest” Print a “is greatest” Stop 4. To find the greatest of 3 numbers