Lecture 4
Lecture 4
Provide pseudocodes
both both examples
Enter length,
width & height
Volume = length x
height x width
Print volume
Stop
Flowchart
Start
Enter length,
width & height
Volume = length x
height x width
Print volume
Stop
Pseudo code for Conditional
Statement
diamond -
decision
block
Generate the C code expression for the flow chart above
Converting Pseudo code to flow
chart for Conditional Statement
Enter grade
No
grade <= 55
Yes Print C+
and above
No
grade <= 50
Print C Yes
Print Failed