Mulai Baca x x<50 Nilai Selesai Yes No main() { int x,s; cin>>x; if(x<50) { Nilai=‘C’; } else { if(x<70) { Nilai=‘B’; } else { Nilai=‘A’; } Nilai=C Nilai=BNilai=A x<70 YesNo Yes No Yes No
X X<50? Nilai Mulai Baca x X=90 90 X<50? Output
Mulai Baca x x<50 X X<50? Nilai 90 X<50? Output No
Mulai Baca x x<50 No x<70 X X<50? Nilai 90 X<70? Output No
Mulai Baca x x<50 No Nilai=A x<70 No X X<50? Nilai 90 X<70? Output No A
Mulai Baca x x<50 Nilai Selesai No Nilai=A x<70 No X X<50? Nilai 90 X<70? Output No A A