Examples of Flowchart and Pseudo Code
Example 1 : Flow chart for finding the sum of and product of two numbers.
Declare Integer a
Declare Integer b
Declare Integer sum
Declare Integer product
Display "Enter any two numbers :"
Input a
Input b
Set sum = a + b
Set product = a * b
Display "Sum and Product of given two number is :"
Display sum
Display product
Example 2 : Flow chart for convert temperature in farenheit to celcius.
Declare Real farenheit
Declare Real celcius
Display "Enter the temperature value in farenheit :"
Input farenheit
Set celcius = 5 / 9 * (farenheit - 32)
Display "Given temperature in celcius is :"
Display celcius
(Note : All flowcharts prepared using Flowgorithm (Download the flowgorithm from link : http://www.flowgorithm.org/)
Comments
Post a Comment