Lab 1 - Flowchart
Lab 1 - Flowchart
Start
Read A,B,C
Print "B is the largest True False True True Print "A is the largest
B>C A>B A>C
number" number"
False False
Finish
Exercise 5:
Start
Calculate
d= sqrt((x-x0)2 + (y-y0)2)
False
False
Read a, b, c
False
False
False
Caculate
d = b2 - 4ac
Print x x = - b/2a
True
True
Print x1, x2
Print " the quadratic equation
have complex solution
Finish
Exercise 7
Start
Read N
i=1
S=0
True
Avg = S/N i>N
False
S = S +Ai
Finish
i=i+1
Exercise 8
Start
max = C False
mid = B
False
True
mid = B True True
B >= C max = A A >= B ( A - B )*( A - C ) >= 0
min = C
False
mid = C False
min = B
max = B True
B >= C mid = A
min = C
False
max = C
min = B
True
min + max <= mid Print not the triangle
False
Print the right-angled
triangle
False
min = mid or True Print the isosceles
max = mid triangle
False
Finish
Exercise 9
Start
Read A, B, C, D
Calculate
X = (A + B + C + D)/4
True
Print pass X >= 60
False