Lets say you are doing a count on people in the different categories of their district. Districts are from 1 to 22. How would you code it (VB). I know you have to set array to 0, but when counting the people in each group, what statement would be needed. take for instance: num cenDistrict, num citizen
num count[23] all =0
mainloop()
count[district] = count[district] + 1 I am hoping this statement is counting the districts
finishup()
count = 1
while count <=22 then
print count, count[district]
count = count + 1
My question: am I counting citizens in any of these statements
2007-03-14
20:04:05
·
1 answers
·
asked by
Anastacia
2
in
Computers & Internet
➔ Programming & Design