Professional Documents
Culture Documents
rok
mnostv sklizenho
sub ()
dim s as integer, s as integer, h as integer
j = 0
h = 0
s= 1
Do until Cells (1, s) = " "
If cells (1, s) = "Jablko" then
j = j + Cells (3, s)
else if (1, s) = "Hruka" then
h = h + Cells (3, s)
end if
s = s + 1
loop
If j > h then
msgbox ("Urodilo se vce jablek")
else
msgbox ("Neurodilo se vce jablek, hruek bylo vc")
end sub