Flowchart Exercise HCMUT
Flowchart Exercise HCMUT
Input a, b, c
No Yes
a<b b<c
Yes No
No
a<c
Yes
End
Exercise 5
Start
Input x, y,
x0, y0, r
No
d == r d<r
Yes
End
Exercise 6
Start
Input a, b, c
d = b^2 - 4ac
Yes
d<0
No
No
x1= (-b + sqrt(d)) / (2a)
d == 0
x2 = (-b - sqrt(d)) / (2a)
Yes
x = -b / (2a)
End
Exercise 7
Start
Input N
i=0
sum = 0
Input temp
sum += temp
i++
Yes
i<N
No
avg = sum / N
Print: avg
End
Exercise 8
Start
Input a, b, c
isosceles = 0
Yes a == b or No
b == c or
c == a
Yes
Yes
Yes
isosceles = 1
No
Print: isosceles
Print: equilateral Print: right - angled Print: Normal
right - angled
End
Exercise 9
Start
Input a, b, c, d
avg = (a+b+c+d) / 4
No
avg >= 60
Yes
End