Kamis, 04 Desember 2008

algoritma 4karakter

program karakter4
kamus
cptMATA : integer
pres_is_MA: boolean
pres_is_TA: boolean
algoritma
cptMATA<-0
START COUPLE
while CC<> '.' do
pres_is_MA <- false
pres_is_TA <- C1='M' and C2='A'
ADV COUPLE
pres_is_TA <- false
pres_is_TA <- C1='T' and C2='A'
if pres_is_MA and pres_is_TA then
cptMATA<-cptMATA+1
ADV COUPLE

Tidak ada komentar:

Popular Posts

Pages

Followers

Featured Posts